port-probe: fix warnings with -Wdiscarded-qualifiers

mm-port-probe.c:1091:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   1091 |     { "AT",  3, mm_port_probe_response_processor_is_at },
        |       ^~~~
  ...
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent 337e5e96e0
commit 51ef497634
+13 -13
View File
@@ -1104,35 +1104,35 @@ serial_probe_at (MMPortProbe *self)
}
static const MMPortProbeAtCommand at_probing[] = {
{ "AT", 3, mm_port_probe_response_processor_is_at },
{ "AT", 3, mm_port_probe_response_processor_is_at },
{ "AT", 3, mm_port_probe_response_processor_is_at },
{ (gchar *)"AT", 3, mm_port_probe_response_processor_is_at },
{ (gchar *)"AT", 3, mm_port_probe_response_processor_is_at },
{ (gchar *)"AT", 3, mm_port_probe_response_processor_is_at },
{ NULL }
};
static const MMPortProbeAtCommand vendor_probing[] = {
{ "+CGMI", 3, mm_port_probe_response_processor_string },
{ "+GMI", 3, mm_port_probe_response_processor_string },
{ "I", 3, mm_port_probe_response_processor_string },
{ (gchar *)"+CGMI", 3, mm_port_probe_response_processor_string },
{ (gchar *)"+GMI", 3, mm_port_probe_response_processor_string },
{ (gchar *)"I", 3, mm_port_probe_response_processor_string },
{ NULL }
};
static const MMPortProbeAtCommand product_probing[] = {
{ "+CGMM", 3, mm_port_probe_response_processor_string },
{ "+GMM", 3, mm_port_probe_response_processor_string },
{ "I", 3, mm_port_probe_response_processor_string },
{ (gchar *)"+CGMM", 3, mm_port_probe_response_processor_string },
{ (gchar *)"+GMM", 3, mm_port_probe_response_processor_string },
{ (gchar *)"I", 3, mm_port_probe_response_processor_string },
{ NULL }
};
static const MMPortProbeAtCommand icera_probing[] = {
{ "%IPSYS?", 3, mm_port_probe_response_processor_string },
{ "%IPSYS?", 3, mm_port_probe_response_processor_string },
{ "%IPSYS?", 3, mm_port_probe_response_processor_string },
{ (gchar *)"%IPSYS?", 3, mm_port_probe_response_processor_string },
{ (gchar *)"%IPSYS?", 3, mm_port_probe_response_processor_string },
{ (gchar *)"%IPSYS?", 3, mm_port_probe_response_processor_string },
{ NULL }
};
static const MMPortProbeAtCommand xmm_probing[] = {
{ "+XACT=?", 3, mm_port_probe_response_processor_string },
{ (gchar *)"+XACT=?", 3, mm_port_probe_response_processor_string },
{ NULL }
};