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:
Aleksander Morgado
2020-01-30 18:47:08 +01:00
parent 10c9ac18f7
commit cfd5cad882

View File

@@ -72,7 +72,7 @@ struct _MMBroadbandModemTelitPrivate {
typedef struct { typedef struct {
MMModemLocationSource source; MMModemLocationSource source;
gint gps_enable_step; guint gps_enable_step;
} LocationGatheringContext; } LocationGatheringContext;
/* /*