Unfortunately Clang intelligent flow analysis prevents us from using different
asserts for invalid parameter value and unhandled one, which could happen if
more elements are added to wxMouseButton enum in the future.
Closes #15201.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73972
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
case wxMOUSE_BTN_NONE:
case wxMOUSE_BTN_MAX:
- wxFAIL_MSG(wxS("invalid parameter"));
- return false;
-
- default:
- wxFAIL_MSG(wxS("unknown parameter"));
- return false;
+ break;
}
+
+ wxFAIL_MSG(wxS("invalid parameter"));
+ return false;
}