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