diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 18:32:38 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-31 14:52:50 +0100 |
commit | cff9d4a797de5a8d777369899501d343f7e7b8f0 (patch) | |
tree | 1c6dc99406b3601f97e3167291e47fce33bf36f1 | |
parent | 2fd6d401f5a468e69c60d5ee2d1d599414f7cb8d (diff) |
option: fix warnings with -Wdiscarded-qualifiers
option/mm-broadband-modem-option.c:978:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
978 | { "_OSSYS=1", 3, FALSE, NULL },
| ^~~~~~~~~~
option/mm-broadband-modem-option.c:979:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
979 | { "_OCTI=1", 3, FALSE, NULL },
| ^~~~~~~~~
option/mm-broadband-modem-option.c:980:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
980 | { "_OUWCTI=1", 3, FALSE, NULL },
| ^~~~~~~~~~~
option/mm-broadband-modem-option.c:981:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
981 | { "_OSQI=1", 3, FALSE, NULL },
| ^~~~~~~~~
option/mm-broadband-modem-option.c:1033:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1033 | { "_OSSYS=0", 3, FALSE, NULL },
| ^~~~~~~~~~
option/mm-broadband-modem-option.c:1034:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1034 | { "_OCTI=0", 3, FALSE, NULL },
| ^~~~~~~~~
option/mm-broadband-modem-option.c:1035:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1035 | { "_OUWCTI=0", 3, FALSE, NULL },
| ^~~~~~~~~~~
option/mm-broadband-modem-option.c:1036:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1036 | { "_OSQI=0", 3, FALSE, NULL },
| ^~~~~~~~~
-rw-r--r-- | plugins/option/mm-broadband-modem-option.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/option/mm-broadband-modem-option.c b/plugins/option/mm-broadband-modem-option.c index 94cde687..8103932a 100644 --- a/plugins/option/mm-broadband-modem-option.c +++ b/plugins/option/mm-broadband-modem-option.c @@ -975,10 +975,10 @@ own_enable_unsolicited_events_ready (MMBaseModem *self, } static const MMBaseModemAtCommand unsolicited_enable_sequence[] = { - { "_OSSYS=1", 3, FALSE, NULL }, - { "_OCTI=1", 3, FALSE, NULL }, - { "_OUWCTI=1", 3, FALSE, NULL }, - { "_OSQI=1", 3, FALSE, NULL }, + { (gchar *) "_OSSYS=1", 3, FALSE, NULL }, + { (gchar *) "_OCTI=1", 3, FALSE, NULL }, + { (gchar *) "_OUWCTI=1", 3, FALSE, NULL }, + { (gchar *) "_OSQI=1", 3, FALSE, NULL }, { NULL } }; @@ -1030,10 +1030,10 @@ modem_3gpp_disable_unsolicited_events_finish (MMIfaceModem3gpp *self, } static const MMBaseModemAtCommand unsolicited_disable_sequence[] = { - { "_OSSYS=0", 3, FALSE, NULL }, - { "_OCTI=0", 3, FALSE, NULL }, - { "_OUWCTI=0", 3, FALSE, NULL }, - { "_OSQI=0", 3, FALSE, NULL }, + { (gchar *) "_OSSYS=0", 3, FALSE, NULL }, + { (gchar *) "_OCTI=0", 3, FALSE, NULL }, + { (gchar *) "_OUWCTI=0", 3, FALSE, NULL }, + { (gchar *) "_OSQI=0", 3, FALSE, NULL }, { NULL } }; |