Sun Studio 12: Fortran User's Guide

3.4.109 –w[n]

Show or suppress warning messages.

This option shows or suppresses most warning messages. However, if one option overrides all or part of an option earlier on the command line, you do get a warning.

n may be 0, 1, 2 ,3, or 4.

-w0 shows just error messages. This is equivalent to -w. -w1 shows errors and warnings. This is the default without -w.-w2 shows errors, warnings, and cautions.-w3 shows errors, warnings, cautions, and notes.-w4 shows errors, warnings, cautions, notes, and comments.

Example: -w still allows some warnings to get through:

demo% f95 -w -parallel any.f
f95: Warning: Optimizer level changed from 0 to 3 to support parallelized code