From 06cf550002cd258c1e53e21dc42b522fa1e03f28 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 9 Aug 2018 11:32:55 -0300 Subject: [PATCH] Avoid warning in debug mode about unused var when KEY_TRACE does nothing --- src/she/x11/window.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/she/x11/window.cpp b/src/she/x11/window.cpp index e4099539a..2f1d1d23e 100644 --- a/src/she/x11/window.cpp +++ b/src/she/x11/window.cpp @@ -557,13 +557,7 @@ void X11Window::processX11Event(XEvent& event) (event.type == KeyPress ? "KeyPress": "KeyRelease"), event.xkey.state, event.xkey.keycode); - -#ifndef NDEBUG - { - char* str = XKeysymToString(keysym); - KEY_TRACE(" > %s\n", str); - } -#endif + KEY_TRACE(" > %s\n", XKeysymToString(keysym)); queueEvent(ev); break;