altair: fix warnings with -Wdiscarded-qualifiers
altair/mm-plugin-altair-lte.c:44:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
44 | { "AT", 7, mm_port_probe_response_processor_is_at },
| ^~~~
altair/mm-plugin-altair-lte.c:45:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
45 | { "AT", 7, mm_port_probe_response_processor_is_at },
| ^~~~
altair/mm-plugin-altair-lte.c:46:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
46 | { "AT", 7, mm_port_probe_response_processor_is_at },
| ^~~~
altair/mm-broadband-modem-altair-lte.c:886:5: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
886 | { "%STATCM=1", 10, FALSE, response_processor_no_result_stop_on_error },
| ^~~~~~~~~~~
altair/mm-broadband-modem-altair-lte.c:887:5: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
887 | { "%NOTIFYEV=\"SIMREFRESH\",1", 10, FALSE, NULL },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
altair/mm-broadband-modem-altair-lte.c:888:5: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
888 | { "%PCOINFO=1", 10, FALSE, NULL },
| ^~~~~~~~~~~~
...
This commit is contained in:
@@ -883,9 +883,9 @@ response_processor_no_result_stop_on_error (MMBaseModem *self,
|
||||
}
|
||||
|
||||
static const MMBaseModemAtCommand unsolicited_events_enable_sequence[] = {
|
||||
{ "%STATCM=1", 10, FALSE, response_processor_no_result_stop_on_error },
|
||||
{ "%NOTIFYEV=\"SIMREFRESH\",1", 10, FALSE, NULL },
|
||||
{ "%PCOINFO=1", 10, FALSE, NULL },
|
||||
{ (gchar *) "%STATCM=1", 10, FALSE, response_processor_no_result_stop_on_error },
|
||||
{ (gchar *) "%NOTIFYEV=\"SIMREFRESH\",1", 10, FALSE, NULL },
|
||||
{ (gchar *) "%PCOINFO=1", 10, FALSE, NULL },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
@@ -955,9 +955,9 @@ modem_3gpp_enable_unsolicited_events (MMIfaceModem3gpp *self,
|
||||
/* Disabling unsolicited events (3GPP interface) */
|
||||
|
||||
static const MMBaseModemAtCommand unsolicited_events_disable_sequence[] = {
|
||||
{ "%STATCM=0", 10, FALSE, NULL },
|
||||
{ "%NOTIFYEV=\"SIMREFRESH\",0", 10, FALSE, NULL },
|
||||
{ "%PCOINFO=0", 10, FALSE, NULL },
|
||||
{ (gchar *) "%STATCM=0", 10, FALSE, NULL },
|
||||
{ (gchar *) "%NOTIFYEV=\"SIMREFRESH\",0", 10, FALSE, NULL },
|
||||
{ (gchar *) "%PCOINFO=0", 10, FALSE, NULL },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
||||
@@ -41,9 +41,9 @@ MM_PLUGIN_DEFINE_MINOR_VERSION
|
||||
take longer to respond after a reset.
|
||||
*/
|
||||
static const MMPortProbeAtCommand custom_at_probe[] = {
|
||||
{ "AT", 7, mm_port_probe_response_processor_is_at },
|
||||
{ "AT", 7, mm_port_probe_response_processor_is_at },
|
||||
{ "AT", 7, mm_port_probe_response_processor_is_at },
|
||||
{ (gchar *) "AT", 7, mm_port_probe_response_processor_is_at },
|
||||
{ (gchar *) "AT", 7, mm_port_probe_response_processor_is_at },
|
||||
{ (gchar *) "AT", 7, mm_port_probe_response_processor_is_at },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user