From 537334f327eb8f6b365b8e24d69a25e52e477284 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 24 May 2019 10:55:00 +0200 Subject: [PATCH] win32: silent 2 warnings --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 261f791d..376b5c93 100644 --- a/src/main.c +++ b/src/main.c @@ -1533,6 +1533,7 @@ int main(int argc,char * argv[]) free(TmpArg); // TODO : nCmdShow indicates if the window must be maximized, etc. + (void)nCmdShow; #endif if(!Init_program(argc,argv)) { @@ -1558,6 +1559,8 @@ int main(int argc,char * argv[]) int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR _lpCmdLine, int nCmdShow) { WCHAR *lpCmdLine = GetCommandLineW(); + (void)_lpCmdLine; + if (__argc == 1) { // avoids GetCommandLineW bug that does not always quote the program name if no arguments do { ++lpCmdLine; } while (*lpCmdLine);