aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-30 18:52:01 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commitb856f3625db670346a248967a53d6d0119e725b7 (patch)
tree0562070ca2180af299f7818eb06a40251ffca546
parentc1aac8ed2678c2ac7ae0333a3322b8990fe50527 (diff)
zte: fix warnings with -Wdiscarded-qualifiers
zte/mm-plugin-zte.c:54:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 54 | { "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at }, | ^~~~~~~~~~~~ zte/mm-plugin-zte.c:55:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 55 | { "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at }, | ^~~~~~~~~~~~ zte/mm-plugin-zte.c:56:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 56 | { "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at }, | ^~~~~~~~~~~~
-rw-r--r--plugins/zte/mm-plugin-zte.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/zte/mm-plugin-zte.c b/plugins/zte/mm-plugin-zte.c
index 7b0849f1..fcac8ee3 100644
--- a/plugins/zte/mm-plugin-zte.c
+++ b/plugins/zte/mm-plugin-zte.c
@@ -51,9 +51,9 @@ MM_PLUGIN_DEFINE_MINOR_VERSION
* We use this command also for checking AT support in the port.
*/
static const MMPortProbeAtCommand custom_at_probe[] = {
- { "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
- { "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
- { "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
+ { (gchar *) "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
+ { (gchar *) "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
+ { (gchar *) "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ NULL }
};