aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-12-25 13:20:48 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-30 11:59:14 +0100
commita16ac01604da7c2b3f67c0f157db8e472ee100b1 (patch)
tree2a79086bd80359043af98a0ba332c8d9f350f155
parentde3a2f5d2e7586e02098cd7cc9c50fbeb3cdd5b3 (diff)
tests,at-serial-port: fix warnings with -Wdiscarded-qualifiers
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" }, | ^~~~~~
-rw-r--r--src/tests/test-at-serial-port.c4
1 files changed, 2 insertions, 2 deletions
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[] = {