From 7c268092bd1bef2cefc9702aca1c8f3106e9ddfa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 6 Jul 2020 13:03:09 +0200 Subject: [PATCH] Avoid an unused variable warning in wxUIActionSimulatorX11 This happens in wxMotif build, where this class probably doesn't work anyhow, so just suppress it. --- src/unix/uiactionx11.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unix/uiactionx11.cpp b/src/unix/uiactionx11.cpp index 62640b0a3c..aaee4eaf56 100644 --- a/src/unix/uiactionx11.cpp +++ b/src/unix/uiactionx11.cpp @@ -172,7 +172,11 @@ protected: return; focus = (Window)(win->GetHandle()); - #endif // __WXGTK__ + #else + // We probably need to do something similar here for the other ports, + // but for now just avoid the warning about an unused variable. + wxUnusedVar(win); + #endif // platform wxLogTrace("focus", "SetInputFocusToXWindow on Window 0x%ul.", focus);