| United States-English |
|
|
|
![]() |
HP-UX Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line OptionsError Handling |
|
Use these options to control how potential errors in your code are detected and handled. The +p option disallows all anachronistic constructs. Ordinarily, the compiler gives warnings about anachronistic constructs. Using the +p option, the compiler gives errors for anachronistic constructs. Example: The following command compiles file.C and gives errors for all anachronistic constructs rather than just giving warnings. aCC +p file.C The -w option suppresses all warning messages. By default, the compiler reports all errors and warnings. Example: The following command compiles file.C and reports errors but does not report any warnings. aCC -w file.C The +w option warns you about all questionable constructs, as well as constructs that are almost certainly problems. The default is to warn only about constructs that are almost certainly problems. For example, this option warns you when calls to inline functions cannot be expanded inline. The following command compiles file.C and warns about both questionable and problematic constructs. aCC +w file.C
The +wn option specifies the level of the warnings messages. +w{1|2|3} The value of n can be one of the following:
+Warg1[,arg2,..argn] The +Wargs option selectively suppresses any specified warning messages. arg1 through argn are valid compiler warning message numbers. Example: aCC +W600 app.C +We The +We option interprets all warning and future error messages as errors. Alternatively you can also use +We[arg1,...argn] option, where arg is a valid compiler warning message number. Use of arg is optional. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||