Skip to content

OBS007 pause-statement ​

warning enabled by default

A pause statement.

Why ​

pause was deleted from the language in Fortran 95; compilers accept it only as an extension.

Reported ​

fortran
pause

Preferred ​

fortran
read(*, *)   ! or remove it

Suppressing ​

For one occurrence, with the reason on the same line (or alone on the line before the statement):

fortran
! fobis: ignore[OBS007] <why this occurrence is fine>

For the whole project, ignore = OBS007 in the fobos [lint] section.

Equivalent ​

Fortitude rule OB051 (see Lint Rules).