diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-01 16:42:27 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-01 16:42:27 (EDT) |
commit | 8ba5c21b1d01ccafa071f2bcf94127175d5f461a (patch) | |
tree | 28afa639feb12039fcea3aaaaf76ebd773b7c176 | |
parent | ec15a1449cb482d317f3c0b8adbdef10f1325f91 (diff) | |
download | marquee-8ba5c21b1d01ccafa071f2bcf94127175d5f461a.zip marquee-8ba5c21b1d01ccafa071f2bcf94127175d5f461a.tar.gz marquee-8ba5c21b1d01ccafa071f2bcf94127175d5f461a.tar.bz2 |
mq_web_view_*_scheme_methods.context_menu(): Add (empty) default cases
Fixes:
CC src/web-view-schemes/marquee-normal.o
src/web-view-schemes/normal.c: In function ‘context_menu’:
src/web-view-schemes/normal.c:455:3: warning: switch missing default case [-Wswitch-default]
switch (stock_action) {
^
CC src/web-view-schemes/marquee-view-source.o
src/web-view-schemes/view-source.c: In function ‘context_menu’:
src/web-view-schemes/view-source.c:173:3: warning: switch missing default case [-Wswitch-default]
switch (stock_action) {
^
-rw-r--r-- | src/web-view-schemes/normal.c | 2 | ||||
-rw-r--r-- | src/web-view-schemes/view-source.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c index cb6c58a..c4d42b8 100644 --- a/src/web-view-schemes/normal.c +++ b/src/web-view-schemes/normal.c @@ -501,6 +501,8 @@ context_menu(MqWebView *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, case WKCMA(MEDIA_MUTE): PRESERVE_ITEM(media_ctrl_items); break; + default: + break; } #pragma GCC diagnostic pop } diff --git a/src/web-view-schemes/view-source.c b/src/web-view-schemes/view-source.c index 4ff2b92..3a18adc 100644 --- a/src/web-view-schemes/view-source.c +++ b/src/web-view-schemes/view-source.c @@ -181,6 +181,8 @@ context_menu(MqWebView *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, PRESERVE_ITEM(edit_items); is_selection = TRUE; break; + default: + break; } #pragma GCC diagnostic pop } |