Sun Studio 12: C++ User's Guide

A.2.100.1 Defaults

If +w is not specified, the compiler warns about constructs that are almost certainly problems.

Interactions

Some C++ standard headers result in warnings when compiled with +w.

See also

–w, +w2