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:
@@ -302,6 +302,7 @@ bool wxPrintfConvSpec<CharType>::Parse(const CharType *format)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// else: fall-through, 'I' is MSVC equivalent of C99 'z'
|
// else: fall-through, 'I' is MSVC equivalent of C99 'z'
|
||||||
|
wxFALLTHROUGH;
|
||||||
#endif // __WINDOWS__
|
#endif // __WINDOWS__
|
||||||
|
|
||||||
case wxT('z'):
|
case wxT('z'):
|
||||||
|
@@ -51,6 +51,7 @@ bool wxListKey::operator==(wxListKeyValue value) const
|
|||||||
wxFAIL_MSG(wxT("bad key type."));
|
wxFAIL_MSG(wxT("bad key type."));
|
||||||
// let compiler optimize the line above away in release build
|
// let compiler optimize the line above away in release build
|
||||||
// by not putting return here...
|
// by not putting return here...
|
||||||
|
wxFALLTHROUGH;
|
||||||
|
|
||||||
case wxKEY_STRING:
|
case wxKEY_STRING:
|
||||||
return *m_key.string == *value.string;
|
return *m_key.string == *value.string;
|
||||||
|
Reference in New Issue
Block a user