icera: fix warnings with -Wdiscarded-qualifiers

CC       icera/libmm_shared_icera_la-mm-broadband-modem-icera.lo
  icera/mm-broadband-modem-icera.c:1082:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   1082 |     { MM_MODEM_BAND_UTRAN_1, "FDD_BAND_I",    FALSE },
        |                              ^~~~~~~~~~~~
  icera/mm-broadband-modem-icera.c:1083:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   1083 |     { MM_MODEM_BAND_UTRAN_2, "FDD_BAND_II",   FALSE },
        |                              ^~~~~~~~~~~~~
  icera/mm-broadband-modem-icera.c:1084:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   1084 |     { MM_MODEM_BAND_UTRAN_3, "FDD_BAND_III",  FALSE },
        |                              ^~~~~~~~~~~~~~
  icera/mm-broadband-modem-icera.c:1085:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   1085 |     { MM_MODEM_BAND_UTRAN_4, "FDD_BAND_IV",   FALSE },
        |                              ^~~~~~~~~~~~~
  icera/mm-broadband-modem-icera.c:1086:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   1086 |     { MM_MODEM_BAND_UTRAN_5, "FDD_BAND_V",    FALSE },
        |                              ^~~~~~~~~~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 18:21:32 +01:00
parent 281f656000
commit 7af58f3450

View File

@@ -1079,20 +1079,20 @@ band_free (Band *b)
static const Band modem_bands[] = { static const Band modem_bands[] = {
/* Sort 3G first since it's preferred */ /* Sort 3G first since it's preferred */
{ MM_MODEM_BAND_UTRAN_1, "FDD_BAND_I", FALSE }, { MM_MODEM_BAND_UTRAN_1, (gchar *) "FDD_BAND_I", FALSE },
{ MM_MODEM_BAND_UTRAN_2, "FDD_BAND_II", FALSE }, { MM_MODEM_BAND_UTRAN_2, (gchar *) "FDD_BAND_II", FALSE },
{ MM_MODEM_BAND_UTRAN_3, "FDD_BAND_III", FALSE }, { MM_MODEM_BAND_UTRAN_3, (gchar *) "FDD_BAND_III", FALSE },
{ MM_MODEM_BAND_UTRAN_4, "FDD_BAND_IV", FALSE }, { MM_MODEM_BAND_UTRAN_4, (gchar *) "FDD_BAND_IV", FALSE },
{ MM_MODEM_BAND_UTRAN_5, "FDD_BAND_V", FALSE }, { MM_MODEM_BAND_UTRAN_5, (gchar *) "FDD_BAND_V", FALSE },
{ MM_MODEM_BAND_UTRAN_6, "FDD_BAND_VI", FALSE }, { MM_MODEM_BAND_UTRAN_6, (gchar *) "FDD_BAND_VI", FALSE },
{ MM_MODEM_BAND_UTRAN_8, "FDD_BAND_VIII", FALSE }, { MM_MODEM_BAND_UTRAN_8, (gchar *) "FDD_BAND_VIII", FALSE },
/* 2G second */ /* 2G second */
{ MM_MODEM_BAND_G850, "G850", FALSE }, { MM_MODEM_BAND_G850, (gchar *) "G850", FALSE },
{ MM_MODEM_BAND_DCS, "DCS", FALSE }, { MM_MODEM_BAND_DCS, (gchar *) "DCS", FALSE },
{ MM_MODEM_BAND_EGSM, "EGSM", FALSE }, { MM_MODEM_BAND_EGSM, (gchar *) "EGSM", FALSE },
{ MM_MODEM_BAND_PCS, "PCS", FALSE }, { MM_MODEM_BAND_PCS, (gchar *) "PCS", FALSE },
/* And ANY last since it's most inclusive */ /* And ANY last since it's most inclusive */
{ MM_MODEM_BAND_ANY, "ANY", FALSE }, { MM_MODEM_BAND_ANY, (gchar *) "ANY", FALSE },
}; };
static const guint modem_band_any_bit = 1 << (G_N_ELEMENTS (modem_bands) - 1); static const guint modem_band_any_bit = 1 << (G_N_ELEMENTS (modem_bands) - 1);