fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

WARNINGS

Syntax:

[NO] WARNINGS [FOR] ALIGNMENT [NO] WARNINGS [FOR] CALL EXIT [NO] WARNINGS [FOR] DUPLICATE SUB-PROGRAMS [NO] WARNINGS [FOR] FORTRAN KEYWORDS [NO] WARNINGS [FOR] NON-PRINTING CHARACTERS [NO] WARNINGS [FOR] NON-STANDARD COMMENT DELIMITERS [NO] WARNINGS [FOR] SPACING [NO] WARNINGS [FOR] STRING DELIMITERS [NO] WARNINGS [FOR] UNDELIMITED TRAILING COMMENTS [NO] WARNINGS [FOR] KEYWORD <identifier> [NO] WARNINGS [FOR] UNUSED PARAMETERS

Function:

These commands enable or suppress groups of warnings. The mechanism by which the warnings are enabled and suppressed is exactly the same as in the ENABLE ERROR and SUPPRESS ERROR commands. When warnings are suppressed, they are not reported to the screen or in the listing file, they are not marked in the code and they are not included in the counts of errors, warnings and notes reported at the end of the listing (FPL) file. When they are subsequently enabled, they are marked in the output code and counted in the final summary report.

Please note the following:

NO WARNINGS FOR CALL EXIT suppresses the warning in the code that the keyword EXIT has been used as a (non-standard) intrinsic subroutine. It does not remove EXIT from the list of keywords used for symbols.

NO WARNINGS FOR FORTRAN KEYWORDS suppresses the warnings that keywords and intrinsic function names are used for variables. The specific warning that an intrinsic function name has been used for a user-defined array is NOT suppressed. This usage is considered too dangerous to be left unmarked in the code.

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

These warnings are issued by default. (Note that defaults may be changed in the configuration file)

See Also

ENABLE ERROR

SUPPRESS ERROR

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