From 7655f3b35c2f732bacb7a27633c15e107c43234c Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 14 Jan 2020 10:22:33 +0100 Subject: [PATCH] telit: fix warnings with -Wdiscarded-qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit telit/tests/test-mm-modem-helpers-telit.c:48:9: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 48 | "#BND: (0-3)", TRUE, FALSE, FALSE, FALSE, 4, | ^~~~~~~~~~~~~ ... --- plugins/telit/tests/test-mm-modem-helpers-telit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/telit/tests/test-mm-modem-helpers-telit.c b/plugins/telit/tests/test-mm-modem-helpers-telit.c index c9c30e57..ef257441 100644 --- a/plugins/telit/tests/test-mm-modem-helpers-telit.c +++ b/plugins/telit/tests/test-mm-modem-helpers-telit.c @@ -34,7 +34,7 @@ #define MAX_BANDS_LIST_LEN 17 typedef struct { - gchar *response; + const gchar *response; gboolean modem_is_2g; gboolean modem_is_3g; gboolean modem_is_4g;