Specify which warnings the command-line tool issues. This command is global.
-w[arning] keyword [,...]
The options for keyword are:
off
Turn off all warnings. Passed to all tools. Prefix file setting: #pragma warning off.
on
Turn on most warnings. Passed to all tools. Prefix file setting: #pragma warning on.
[no]cmdline
Issue command-line driver/parser warnings
[no]err[or] | [no]iserr[or]
Treat warnings as errors. Passed to all tools. Prefix file setting: #pragma warning_errors.
most
Turn on most warnings.
all
Turn on all warnings and require prototypes.
full
Turn on all warnings including spurious warnings and require prototypes.
[no]pragmas | [no]illpragmas
Issue warnings on illegal #pragmas. Prefix file setting: #pragma warn_illpragma.
[no]empty[decl]
Issue warnings on empty declarations. Prefix file setting: #pragma warn_emptydelc.
[no]possible | [no]unwanted
Issue warnings on possible unwanted effects. Prefix file setting: #pragma warn_possunwanted.
[no]unusedarg
Issue warnings on unused arguments. Prefix file setting: #pragma warn_unusedarg.
[no]unusedvar
Issue warnings on unused variables. Prefix file setting: #pragma warn_unusedvar.
[no]unused
Same as -w [no]unusedarg,[no]unusedvar.
[no]extracomma | [no]comma
Issue warnings on extra commas in enumerations. Prefix file setting: #pragma warn_extracomma.
[no]pedantic | [no]extended
pedantic error checking
[no]hidevirtual | [no]hidden[virtual]
Issue warnings on hidden virtual functions. Prefix file setting: #pragma warn_hidevirtual.
[no]implicit[conv]
Issue warnings on implicit arithmetic conversions. Implies -warn impl_float2int,impl_signedunsigned.
[no]impl_int2float
Issue warnings on implicit integral to floating conversions. Prefix file setting: #pragma warn_impl_i2f_conv.
[no]impl_float2int
Issue warnings on implicit floating to integral conversions. Prefix file setting: #pragma warn_impl_f2i_conv.
[no]impl_signedunsigned
Issue warnings on implicit signed/unsigned conversions.
[no]notinlined
Issue warning when inline functions are not inlined. Prefix file setting: #pragma warn_notinlined.
[no]largeargs
Issue warning when passing large arguments to unprototyped functions. Prefix file setting: #pragma warn_largeargs.
[no]structclass
Issue warning on inconsistent use of class and struct. Prefix file setting: #pragma warn_structclass.
[no]padding
Issue warning when padding is added between struct members. Prefix file setting: #pragma warn_padding.
[no]notused
Issue warning when the result of non-void-returning functions are not used. Prefix file setting: #pragma warn_resultnotused.
[no]missingreturn
Issue warning when a return without a value in non-void-returning function occurs. Prefix file setting: #pragma warn_missingreturn.
[no]unusedexpr
Issue warning when encountering the use of expressions as statements without side effects. Prefix file setting: #pragma warn_no_side_effect.
[no]ptrintconv
Issue warning when loss conversions occur from pointers to integers.
[no]anyptrintconv
Issue warning on any conversion of pointers to integers. Prefix file setting: #pragma warn_ptr_int_conv.
[no]undef[macro]
Issue warning on the use of undefined macros in #if/#elif conditionals. Prefix file setting: #pragma warn_undefmacro.
[no]filecaps
Issue warning when #include "..." statements use incorrect capitalization. Prefix file setting: #pragma warn_filenamecaps.
[no]sysfilecaps
Issue warning when #include <...> statements use incorrect capitalization. Prefix file setting: #pragma warn_filenamecaps_system.
[no]tokenpasting
Issue warning when token is not formed by ## operator. Prefix file setting: #pragma warn_illtokenpasting.
[no]relax_i2i_conv
Issue relax warnings for implicit integer to integer arithmetic conversions (off for full, on otherwise).
[no]alias_ptr_conv
Generate warnings for potentially dangerous pointer casts (full).
display | dump
Display list of active warnings.
Choose Edit > targetname Settings from the CodeWarrior IDE's menu bar, then select the C/C++ Warnings settings panel. Enable or disable specific warnings by clicking the appropriate checkboxes.