![]() | ![]() | ![]() | ![]() | ![]() |
Warnings=["]IgnoreWhich["] |
This #option command allows you to have control of the handling of individual (or groups of) messages. You can choose to completely ignore particular messages or you can "promote" them into fatal errors.
Warnings can come from PPWIZARD, the #warning command or the Warning() function.
By default no warnings are ignored or "promoted". The "IgnoreWhich" parameter can be one of the following:
Each match specification may begin one of the following characters:
All messages match "*". It will also match if the text of a warning message contains the specification string (case insensitive check).
If a message is dropped then you can still see the message in debug mode as well as the reason it normally gets dropped (that is the specification string it matched).
The warning message text which is searched includes the line number as well as the warning ID, basically the exact text that you would normally see so you could prevent warnings down to a particular line number if you wish (although this is not recommended).
Warning IDs and text are not documented so you need to wait for one to occur before deciding how to drop it.
If you wish to see warning messages but still want a zero return code you should check out the /WarningsRc switch.
Example |
The following example lines show how you can treat any warning message that contains "tabs" (in any case) as a fatal error and completely ignore all other warnings that don't contain "FRED".
#option Warnings="+tabs;!FRED;*"
![]() | ![]() | ![]() | ![]() | ![]() |