What specific warnings do -Wall and -Wcheck enable?

What specific warnings do -Wall and -Wcheck enable?

Rhys Ulerich的头像

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/e...

[2] http://software.intel.com/sites/products/documentation/hpc/compilerpro/e...

[3] http://software.intel.com/sites/products/documentation/hpc/compilerpro/e...

1 条帖子 / 0 全新
如需更全面地了解编译器优化,请参阅优化注意事项