FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference Manual Home |


SUPPRESS ERROR

Syntax:

SUPPRESS ERROR <number> [ <number> ... ]

SUPPRESS ALL ERRORS


ENABLE ERROR <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 re-instated 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:

No


Interactive command files

No


Embedded in the Fortran code

Yes


Default:

ENABLE ALL ERRORS

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

Example:

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 2014 Software Validation Ltd. All rights reserved.