diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-12-23 14:50:59 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | 51ef497634aafc29f2c49cb665090adc40967a07 (patch) | |
tree | 9ca3d8a41a7dd136320f056768ea68dfc3e8601c /src/mm-port-probe.c | |
parent | 337e5e96e0a0d8fd0e6ffcc02e9c90aaaf0baa91 (diff) | |
download | ModemManager-51ef497634aafc29f2c49cb665090adc40967a07.tar.gz |
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 },
| ^~~~
...
Diffstat (limited to 'src/mm-port-probe.c')
-rw-r--r-- | src/mm-port-probe.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 1700111f4..f7708f318 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -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 } }; |