From fa3cf062732e5a41f6f0c971d2b4d39159efb190 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Feb 2021 23:59:51 +0100 Subject: [PATCH] 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. --- src/unix/utilsx11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 97efa620ee..41ccf8dbaf 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -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;