GLK: Fix Missing Default Switch Cases in Engine Base Code
These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
parent
365e9af4f0
commit
2e91bf0eea
3 changed files with 10 additions and 0 deletions
|
@ -498,6 +498,9 @@ void GlkAPI::glk_stylehint_set(uint wintype, uint style, uint hint, int val) {
|
||||||
i = val > 0;
|
i = val > 0;
|
||||||
styles[style].font = WindowStyle::makeFont(p, b, i);
|
styles[style].font = WindowStyle::makeFont(p, b, i);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wintype == wintype_TextBuffer && style == style_Normal && hint == stylehint_BackColor) {
|
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:
|
case stylehint_Oblique:
|
||||||
styles[style].font = defaults[style].font;
|
styles[style].font = defaults[style].font;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,8 @@ uint bufferChangeCase(uint32 *buf, uint len, uint numchars, BufferChangeCase des
|
||||||
dest_spec_rest = CASE_IDENT;
|
dest_spec_rest = CASE_IDENT;
|
||||||
dest_spec_first = destcase;
|
dest_spec_first = destcase;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
dest_block_rest = dest_spec_rest;
|
dest_block_rest = dest_spec_rest;
|
||||||
|
|
|
@ -1204,6 +1204,8 @@ int TextBufferWindow::acceptScroll(uint arg) {
|
||||||
else
|
else
|
||||||
_scrollPos = 0;
|
_scrollPos = 0;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_scrollPos > _scrollMax - _height + 1)
|
if (_scrollPos > _scrollMax - _height + 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue