From f3acdcaa1b1a096dc0863eff4d3ad1b8f2a47c65 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Jan 2020 09:30:14 +0100 Subject: [PATCH] mtk: fix warnings with -Wdiscarded-qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mtk/mm-broadband-modem-mtk.c:727:6: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 727 | {"+ECSQ=2", 5, FALSE, NULL}, | ^~~~~~~~~ mtk/mm-broadband-modem-mtk.c:733:6: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 733 | {"+ECSQ=0", 5, FALSE, NULL}, | ^~~~~~~~~ --- plugins/mtk/mm-broadband-modem-mtk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/mtk/mm-broadband-modem-mtk.c b/plugins/mtk/mm-broadband-modem-mtk.c index 98620124..9b4ab759 100644 --- a/plugins/mtk/mm-broadband-modem-mtk.c +++ b/plugins/mtk/mm-broadband-modem-mtk.c @@ -724,14 +724,14 @@ modem_3gpp_cleanup_unsolicited_events (MMIfaceModem3gpp *self, static const MMBaseModemAtCommand unsolicited_enable_sequence[] = { /* enable signal URC */ - {"+ECSQ=2", 5, FALSE, NULL}, - {NULL} + { (gchar *) "+ECSQ=2", 5, FALSE, NULL }, + { NULL } }; static const MMBaseModemAtCommand unsolicited_disable_sequence[] = { /* disable signal URC */ - {"+ECSQ=0", 5, FALSE, NULL}, - {NULL} + { (gchar *) "+ECSQ=0" , 5, FALSE, NULL }, + { NULL } }; static void