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:
parent
879b81aacf
commit
fa41d06cce
@ -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'):
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user