From a16ac01604da7c2b3f67c0f157db8e472ee100b1 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 25 Dec 2019 13:20:48 +0100 Subject: tests,at-serial-port: fix warnings with -Wdiscarded-qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test-at-serial-port.c:29:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 29 | { "\r\n", "\r\n" }, | ^~~~~~ test-at-serial-port.c:29:15: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 29 | { "\r\n", "\r\n" }, | ^~~~~~ --- src/tests/test-at-serial-port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tests/test-at-serial-port.c b/src/tests/test-at-serial-port.c index 5aacba2a..c864701f 100644 --- a/src/tests/test-at-serial-port.c +++ b/src/tests/test-at-serial-port.c @@ -21,8 +21,8 @@ #include "mm-log.h" typedef struct { - gchar *original; - gchar *without_echo; + const gchar *original; + const gchar *without_echo; } EchoRemovalTest; static const EchoRemovalTest echo_removal_tests[] = { -- cgit v1.2.3-70-g09d2