From fc581c50bd535d4bcaf4f21619c813101b8aef24 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 09:31:14 +0100 Subject: [PATCH] pantech: fix warnings with -Wdiscarded-qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 }, | ^~~~~~ --- plugins/pantech/mm-plugin-pantech.c | 6 +++--- 1 file 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 } };