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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user