Hello.
Microsoft nmake tool will output any compiler warnings during build process. This is very annoying while building large projects (like Qt). Is it possible to disable warnings display while using nmake?
Hello.
Microsoft nmake tool will output any compiler warnings during build process. This is very annoying while building large projects (like Qt). Is it possible to disable warnings display while using nmake?
For Microsoft's C/C++ compiler you can disable spesific warnings from the code using #pragma directives
#pragma warning(disable:4005)
This will disable warning 4005. When you have included the suspect code, you can re enable the warning:
#pragma warning(default:4005)
first of all, the absolute majority of warnings should be taken in consideration and "resolved".
secondly, you can use #pragma as indicated Arve
the third solution see here:
To disable all compiler warnings
To disable a single compiler warning
To treat all compiler warnings as compilation errors
To treat a single compiler warning as a compilation errors
Not nmake is showing you the warnings, but the compiler/tools/scripts that are used. So you have to look into your Makefile
, find out which programs nmake is calling and look into their documentation about the command line options of this tools. For example, for the Microsoft C++ command line compiler cl, you can add "/w" to disable all warnings. cl /? will show you the list of available options. For other programs, other command line options may be appropriate.
If you really do not like to see any output, you can call
nmake >nul: 2>nul:
sending all output to nirwana, but I am pretty sure that is not what you want.