Fix some harmless gcc 7 -Wimplicit-fallthrough warnings

Add wxFALLTHROUGH to avoid the warnings where fall-through is actually
desired.
This commit is contained in:
Vadim Zeitlin 2018-02-03 18:21:36 +01:00
parent 879b81aacf
commit fa41d06cce
2 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,7 @@ bool wxPrintfConvSpec<CharType>::Parse(const CharType *format)
break;
}
// else: fall-through, 'I' is MSVC equivalent of C99 'z'
wxFALLTHROUGH;
#endif // __WINDOWS__
case wxT('z'):

View File

@ -51,6 +51,7 @@ bool wxListKey::operator==(wxListKeyValue value) const
wxFAIL_MSG(wxT("bad key type."));
// let compiler optimize the line above away in release build
// by not putting return here...
wxFALLTHROUGH;
case wxKEY_STRING:
return *m_key.string == *value.string;