Sun Studio 12: C User's Guide

A.1.9 Diagnostic Options

Table A–9 Diagnostic Options Table

Option  

Action  

-errfmt

Prefix error messages with string “error:” for ready distinction from warning messages.

-errhdr

Limits the warnings from header files to a specified group. 

-erroff

Suppresses compiler warning messages.

-errshort

Control 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.

-errwarn

If the indicated warning message is issued, cc exits with a failure status.

-v

Directs the compiler to perform stricter semantic checks and to enable other lint-like checks.

-w

Suppresses compiler warning messages.

-xe

Performs only syntax and semantic checking on the source file, but does not produce any object or executable code.

-xtransition

”Issues warnings for the differences between K&R C and Sun ISO C.

-xvpara

(SPARC) Warns about loops that have #pragma MP directives specified but may not be properly specified for parallelization.