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

@@ -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;