diff options
author | D G Turner | 2019-12-11 03:09:35 +0000 |
---|---|---|
committer | D G Turner | 2019-12-11 03:09:35 +0000 |
commit | 2e91bf0eeabc539c21c205982efd06a52450ab63 (patch) | |
tree | db3c91e372e888a2879d106e39d571987b4d7ede /engines/glk | |
parent | 365e9af4f007e9b7a041f2c34f3e883091b7c62c (diff) | |
download | scummvm-rg350-2e91bf0eeabc539c21c205982efd06a52450ab63.tar.gz scummvm-rg350-2e91bf0eeabc539c21c205982efd06a52450ab63.tar.bz2 scummvm-rg350-2e91bf0eeabc539c21c205982efd06a52450ab63.zip |
GLK: Fix Missing Default Switch Cases in Engine Base Code
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/glk')
-rw-r--r-- | engines/glk/glk_api.cpp | 6 | ||||
-rw-r--r-- | engines/glk/unicode.cpp | 2 | ||||
-rw-r--r-- | engines/glk/window_text_buffer.cpp | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/engines/glk/glk_api.cpp b/engines/glk/glk_api.cpp index 2ca81e9297..9d597a4a10 100644 --- a/engines/glk/glk_api.cpp +++ b/engines/glk/glk_api.cpp @@ -498,6 +498,9 @@ void GlkAPI::glk_stylehint_set(uint wintype, uint style, uint hint, int val) { i = val > 0; styles[style].font = WindowStyle::makeFont(p, b, i); break; + + default: + break; } if (wintype == wintype_TextBuffer && style == style_Normal && hint == stylehint_BackColor) { @@ -551,6 +554,9 @@ void GlkAPI::glk_stylehint_clear(uint wintype, uint style, uint hint) { case stylehint_Oblique: styles[style].font = defaults[style].font; break; + + default: + break; } } diff --git a/engines/glk/unicode.cpp b/engines/glk/unicode.cpp index 23bc0e9d2a..b871fc7778 100644 --- a/engines/glk/unicode.cpp +++ b/engines/glk/unicode.cpp @@ -54,6 +54,8 @@ uint bufferChangeCase(uint32 *buf, uint len, uint numchars, BufferChangeCase des dest_spec_rest = CASE_IDENT; dest_spec_first = destcase; break; + default: + break; } dest_block_rest = dest_spec_rest; diff --git a/engines/glk/window_text_buffer.cpp b/engines/glk/window_text_buffer.cpp index 6c312be607..6a8bb95195 100644 --- a/engines/glk/window_text_buffer.cpp +++ b/engines/glk/window_text_buffer.cpp @@ -1204,6 +1204,8 @@ int TextBufferWindow::acceptScroll(uint arg) { else _scrollPos = 0; break; + default: + break; } if (_scrollPos > _scrollMax - _height + 1) |