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)) { | ^
This commit is contained in:
@@ -72,7 +72,7 @@ struct _MMBroadbandModemTelitPrivate {
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
MMModemLocationSource source;
|
MMModemLocationSource source;
|
||||||
gint gps_enable_step;
|
guint gps_enable_step;
|
||||||
} LocationGatheringContext;
|
} LocationGatheringContext;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user