Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7646 Discussions

What specific warnings do -Wall and -Wcheck enable?

Rhys_Ulerich
New Contributor I
116 Views

Is there a way to find out what warnings/checks are enabled when either -Wall or -Wcheck is specified? Neither reference page in the compiler manual [1,2] lists the relevant options. There's some discussion of /W4 on the -Wall documentation, but I've been unable to find a table of which warnings are enabled at /W4 (or any other /Wn).

Other options reference pages, e.g. -Wreorder, give no information about whether or not -Wall enables them. For comparison, GCC's -Wall does appear to turn on -Wreorder.

Thanks,

Rhys

[1] http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/compiler_c/copt...

[2] http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/compiler_c/copt...

[3] http://software.intel.com/sites/products/documentation/hpc/compilerpro/en-us/cpp/lin/compiler_c/copt...

0 Kudos
0 Replies
Reply