From 17a3782d1a7e0c511e8060d283544dcfb1eaf639 Mon Sep 17 00:00:00 2001 From: "Pascal J. Bourguignon" Date: Thu, 7 Jun 2018 13:29:44 +0200 Subject: [PATCH] FIX: moved declarations above the statements for strict C 90 compliance. --- winpr/libwinpr/utils/test/TestCmdLine.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/utils/test/TestCmdLine.c b/winpr/libwinpr/utils/test/TestCmdLine.c index ae4cf6a..dc85f6b 100644 --- a/winpr/libwinpr/utils/test/TestCmdLine.c +++ b/winpr/libwinpr/utils/test/TestCmdLine.c @@ -64,9 +64,12 @@ int TestCmdLine(int argc, char* argv[]) long width = 0; long height = 0; COMMAND_LINE_ARGUMENT_A* arg; + int testArgc; + char** command_line; + flags = COMMAND_LINE_SIGIL_SLASH | COMMAND_LINE_SEPARATOR_COLON | COMMAND_LINE_SIGIL_PLUS_MINUS; - int testArgc = string_list_length(testArgv); - char** command_line = string_list_copy(testArgv); + testArgc = string_list_length(testArgv); + command_line = string_list_copy(testArgv); status = CommandLineParseArgumentsA(testArgc, command_line, args, flags, NULL, NULL, NULL); if (status != 0) -- 2.7.4