Declare variable unused in ANSI build inside #if wxUSE_UNICODE

This avoids gcc -Wunused-variable about it in the ANSI build.
This commit is contained in:
Vadim Zeitlin
2020-10-18 17:37:24 +02:00
parent 284f5af192
commit 7ed0d831d3

View File

@@ -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++ )