aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-30 18:47:08 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 14:52:50 +0100
commitcfd5cad8826bba97261e1f2bdceab9523f516173 (patch)
tree059900c9a60444c023c17b10231c59f17c7f30e9
parent10c9ac18f706154437bf63a0905e59c8667208ca (diff)
telit: fix warnings with -Wsign-compare
telit/mm-broadband-modem-telit.c: In function ‘gps_enabled_ready’: telit/mm-broadband-modem-telit.c:191:30: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ [-Werror=sign-compare] 191 | if (ctx->gps_enable_step < G_N_ELEMENTS (gps_enable)) { | ^ telit/mm-broadband-modem-telit.c: In function ‘parent_enable_location_gathering_ready’: telit/mm-broadband-modem-telit.c:254:43: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ [-Werror=sign-compare] 254 | if (start_gps && ctx->gps_enable_step < G_N_ELEMENTS (gps_enable)) { | ^
-rw-r--r--plugins/telit/mm-broadband-modem-telit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c
index bacae322..258244c7 100644
--- a/plugins/telit/mm-broadband-modem-telit.c
+++ b/plugins/telit/mm-broadband-modem-telit.c
@@ -72,7 +72,7 @@ struct _MMBroadbandModemTelitPrivate {
typedef struct {
MMModemLocationSource source;
- gint gps_enable_step;
+ guint gps_enable_step;
} LocationGatheringContext;
/*