Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

What specific warnings do -Wall and -Wcheck enable?

Rhys_Ulerich
New Contributor I
238 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/copts/ccpp_options/option_wall.htm

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

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

0 Kudos
0 Replies
Reply