Avoid possible "unreachable statement" warnings

Don't return unconditionally before another return. Somehow gcc doesn't
warn about it, but other compilers (and static analyzer tools)
definitely do.

No real changes.
This commit is contained in:
Vadim Zeitlin
2021-02-28 23:59:51 +01:00
parent f11db09e9b
commit fa3cf06273

View File

@@ -2650,7 +2650,8 @@ bool wxGetKeyState(wxKeyCode key)
#endif // GTK+ 3.4+
#ifdef wxHAS_X11_SUPPORT
return wxGetKeyStateX11(key);
if ( wxGetKeyStateX11(key) )
return true;
#endif
return false;