aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 09:31:14 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commitfc581c50bd535d4bcaf4f21619c813101b8aef24 (patch)
tree42cb470517431bbe00ed37a5cbb45d8ed97a9ad3
parentf6611793105f4714ebc594c3046960b8ae94c62a (diff)
pantech: fix warnings with -Wdiscarded-qualifiers
pantech/mm-plugin-pantech.c:69:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 69 | { "ATE0", 3, port_probe_response_processor_is_pantech_at }, | ^~~~~~ pantech/mm-plugin-pantech.c:70:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 70 | { "ATE0", 3, port_probe_response_processor_is_pantech_at }, | ^~~~~~ pantech/mm-plugin-pantech.c:71:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 71 | { "ATE0", 3, port_probe_response_processor_is_pantech_at }, | ^~~~~~
-rw-r--r--plugins/pantech/mm-plugin-pantech.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/pantech/mm-plugin-pantech.c b/plugins/pantech/mm-plugin-pantech.c
index 66eb6453..312cb324 100644
--- a/plugins/pantech/mm-plugin-pantech.c
+++ b/plugins/pantech/mm-plugin-pantech.c
@@ -66,9 +66,9 @@ port_probe_response_processor_is_pantech_at (const gchar *command,
}
static const MMPortProbeAtCommand custom_at_probe[] = {
- { "ATE0", 3, port_probe_response_processor_is_pantech_at },
- { "ATE0", 3, port_probe_response_processor_is_pantech_at },
- { "ATE0", 3, port_probe_response_processor_is_pantech_at },
+ { (gchar *) "ATE0", 3, port_probe_response_processor_is_pantech_at },
+ { (gchar *) "ATE0", 3, port_probe_response_processor_is_pantech_at },
+ { (gchar *) "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ NULL }
};