win32: silent 2 warnings

This commit is contained in:
Thomas Bernard 2019-05-24 10:55:00 +02:00
parent d287d55710
commit 537334f327
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -1533,6 +1533,7 @@ int main(int argc,char * argv[])
free(TmpArg); free(TmpArg);
// TODO : nCmdShow indicates if the window must be maximized, etc. // TODO : nCmdShow indicates if the window must be maximized, etc.
(void)nCmdShow;
#endif #endif
if(!Init_program(argc,argv)) 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) int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR _lpCmdLine, int nCmdShow)
{ {
WCHAR *lpCmdLine = GetCommandLineW(); WCHAR *lpCmdLine = GetCommandLineW();
(void)_lpCmdLine;
if (__argc == 1) if (__argc == 1)
{ // avoids GetCommandLineW bug that does not always quote the program name if no arguments { // avoids GetCommandLineW bug that does not always quote the program name if no arguments
do { ++lpCmdLine; } while (*lpCmdLine); do { ++lpCmdLine; } while (*lpCmdLine);