Sun Studio 12: C++ User's Guide

A.2.102 –w

Suppresses most warning messages.

This option causes the compiler not to print warning messages. However, some warnings, particularly warnings regarding serious anachronisms, cannot be suppressed.

A.2.102.1 See also

+w