Fortran User's Guide

-w

Suppress warning messages.

    SPARC: 77/90 x86:77

This option 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.

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


demo% f77  -w -fast  -silent -O4  any.f
f77: Warning: -O4 overwrites previously set optimization           level of -O3
demo%

For f90: Individual levels from 0 to 4 can be specified: -w0 suppresses the least messages while -w4 suppresses most warning. -w is equivalent to -w0.