JavaSolarisCommunitiesAbout SunHow to BuyMy AccountCartUnited StatesWorldwide
Sun Microsystems Documentation
docs.sun.com
Browse Documentation Titles
Browse Product Documentation
Help

C Warning and Error Options

Option Meaning
-errfmt Adds the string "error:" to the beginning of error messages so they are more easily distinguishable from warning messages.
-errhdr Limits warnings from header files to a group of header files as indicated by the option's flags.
-erroff Suppresses compiler warning messages but has no effect on error messages.
-errshort Controls how much detail is in the error message produced by the compiler when it discovers a type mismatch.
-errtags Displays the message tag for each warning message of the compiler front-end that can be suppressed with the -erroffoption or made a fatal error with the -errwarn option.
-errwarn Causes the compiler to exit with a failure status for the given warning messages.
-v Performs more and stricter semantic checks, and enables certain lint-like checks on the named C files.
-w Suppresses warning messages.
-xe Checks only for syntax and semantic errors.
-xtransition Issues warnings for differences between K&R C and ISO C.
-xvpara Show parallelization warning messages.

C++ Warning and Error Options

Option Meaning
-erroff Suppresses compiler warning messages but has no effect on error messages.
-errtags Displays the message tag for each warning message of the compiler front-end that can be suppressed with the -erroffoption or made a fatal error with the -errwarn option.
-errwarn Causes the compiler to exit with a failure status for the given warning messages.
+w Identifies code that might have unintended consequences.
+w2 Emits the same warnings as +w as well as warnings about technical violations that are probably harmless, but that might reduce the maximum portability of your program.
-w Suppresses warning messages.
-xe Checks only for syntax and semantic errors.

F95 Warning and Error Options

Option Meaning
-C Checks array references for out of range subscripts and conformance.
-erroff Suppresses compiler warning messages but has no effect on error messages.
-errtags Displays the message tag for each warning message of the compiler front-end that can be suppressed with the -erroffoption or made a fatal error with the -errwarn option.
-errwarn Causes the compiler to exit with a failure status for the given warning messages.
-w Suppresses warning messages.
-Xlist Finds potential programming bugs. Invokes an extra compiler pass to check for consistency in calls and common across the global program.

ContactAbout SunNewsEmploymentSite MapPrivacyTerms of UseTrademarksCopyright Sun Microsystems, Inc.