fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

SUPPRESS ERROR

Syntax:

SUPPRESS ERROR <number> [ <number> ... ] SUPPRESS DIAGNOSTIC <number> [ <number> ... ] SUPPRESS [ALL] NOTES SUPPRESS [ALL] WARNINGS SUPPRESS [ALL] ERRORS SUPPRESS [ALL] DIAGNOSTICS ENABLE ERROR <number> [ <number> ... ] ENABLE DIAGNOSTIC <number> [ <number> ... ] ENABLE [ALL] ERRORS

Function:

The specified diagnostics are suppressed or enabled. Suppressed errors are not displayed interactively and are not marked in the Fortran output files. New occurrences are not reported to the terminal or list (FTL) file. The numbers of occurrences are not included in the total number of diagnostics recorded at the end of processing.

When suppressed errors are re-enabled, the occurrences are reinstated in the Fortran code. Suppressing an error does not prevent fpt from identifying the error. It prevents fpt from reporting or marking it.

Specific groups of errors are suppressed by commands of the form [NO] WARNINGS FOR SPACING, [NO] WARNINGS FOR KEYWORDS etc.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code Yes

Default

Almost all diagnostics are enabled by default.

(Note that defaults may be changed in the configuration file)

Examples

FPT> find err 710 84 LSQ=MYPCE(MAN) 711 JV=JBOARD(LSQ) 712 >> NAME=MYTYPE(MAN) !------------^---------------------------------------------------------------- fpt - 1273 FORTRAN auxiliary keyword used as identifier !----------------------------------------------------------------------------- 713 IF (JV-MYVAL(NAME))82,7,82 !--------------------------^-------------------------------------------------- fpt - 1273 FORTRAN auxiliary keyword used as identifier !----------------------------------------------------------------------------- 714 7 GOTO (41,8,9,17,18,40),NAME FPT> suppress err 1273 *** NOTE *** The following errors have been suppressed 1273 FORTRAN auxiliary keyword(s) used as identifier(s). FPT> type 710 84 LSQ=MYPCE(MAN) 711 JV=JBOARD(LSQ) 712 >> NAME=MYTYPE(MAN) 713 IF (JV-MYVAL(NAME))82,7,82 714 7 GOTO (41,8,9,17,18,40),NAME

See Also

FIND ERRORS

[NO] WARNINGS FOR ...

Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.