Eliminate 'assigned value never used' compiler warning in test_cpp WinMain
authorIvan Maidanski <ivmai@mail.ru>
Thu, 6 Dec 2018 08:23:52 +0000 (11:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 6 Dec 2018 08:23:52 +0000 (11:23 +0300)
* tests/test_cpp.cc [(MSWIN32 && !__MINGW32__ || MSWINCE)
&& !NO_WINMAIN_ENTRY] (WinMain): Remove first argv[argc]=cmd (when cmd
points to a space or tab character).

tests/test_cpp.cc

index 176b526..fe7244b 100644 (file)
@@ -270,7 +270,6 @@ void* Undisguise( GC_word i ) {
           argv[argc] = NULL;
           break;
         }
-        argv[argc] = cmd;
         for (; *cmd != '\0'; cmd++) {
           if (*cmd != ' ' && *cmd != '\t')
             break;