From 7ed0d831d3f3847e2a01e4a82413e93d850606cd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 18 Oct 2020 17:37:24 +0200 Subject: [PATCH] Declare variable unused in ANSI build inside #if wxUSE_UNICODE This avoids gcc -Wunused-variable about it in the ANSI build. --- src/gtk/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index a13b90f959..e4db864b01 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -339,9 +339,10 @@ bool wxApp::Initialize(int& argc_, wxChar **argv_) bool init_result; - int i; #if wxUSE_UNICODE + int i; + // gtk_init() wants UTF-8, not wchar_t, so convert char **argvGTK = new char *[argc_ + 1]; for ( i = 0; i < argc_; i++ )