aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 09:30:41 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commitf6611793105f4714ebc594c3046960b8ae94c62a (patch)
treea7bafa15c41a3b5d3e18aa84d211f9539c8faf58
parentf3acdcaa1b1a096dc0863eff4d3ad1b8f2a47c65 (diff)
novatel-lte: fix warnings with -Wdiscarded-qualifiers
novatel/mm-broadband-modem-novatel-lte.c:249:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 249 | { "+CNUM", 3, TRUE, response_processor_cnum_ignore_at_errors }, | ^~~~~~~ novatel/mm-broadband-modem-novatel-lte.c:250:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 250 | { "$NWMDN", 3, TRUE, response_processor_nwmdn_ignore_at_errors }, | ^~~~~~~~
-rw-r--r--plugins/novatel/mm-broadband-modem-novatel-lte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/novatel/mm-broadband-modem-novatel-lte.c b/plugins/novatel/mm-broadband-modem-novatel-lte.c
index 6b5d0490..65433e49 100644
--- a/plugins/novatel/mm-broadband-modem-novatel-lte.c
+++ b/plugins/novatel/mm-broadband-modem-novatel-lte.c
@@ -246,8 +246,8 @@ response_processor_nwmdn_ignore_at_errors (MMBaseModem *self,
}
static const MMBaseModemAtCommand own_numbers_commands[] = {
- { "+CNUM", 3, TRUE, response_processor_cnum_ignore_at_errors },
- { "$NWMDN", 3, TRUE, response_processor_nwmdn_ignore_at_errors },
+ { (gchar *) "+CNUM", 3, TRUE, response_processor_cnum_ignore_at_errors },
+ { (gchar *) "$NWMDN", 3, TRUE, response_processor_nwmdn_ignore_at_errors },
{ NULL }
};