Table of Contents

Previous: -portability

## Option: pretty

-pretty=list
    Controls certain messages related to the appearance of the source code. These warn about things that might make a program less readable or be deceptive to the reader. By default, all warnings are turned on.

    This setting provides detailed control over the warnings about appearance. The list consists of keywords separated by commas or colons. Since all warnings are on by default, include a keyword prefixed by no- to turn off a particular warning. There are three special keywords: all to turn on all the warnings about misleading appearances, none to turn them all off, and help to print the list of all the keywords with a brief explanation of each. If list is omitted, -pretty is equivalent to -pretty=all, and -nopretty is equivalent to -pretty=none. The warning keywords with their meanings are as follows:

    alternate-return:
      A RETURN statement has a constant specifying an alternate return point that is not between 0 and the number of dummy arguments that are labels. This is legal, and has the same effect as a RETURN with no alternate return expression, but suggests that the programmer intended to use an alternate return label that is not provided.
    embedded-space:
      Space embedded in variable names or in multi-character operators such as **.
    continuation:
      Continuation mark following a comment line.
    long-line:
      Lines (except comments) over 72 columns in width (beyond 72 is normally ignored by compiler).
    missing-space:
      Lack of space between variable and a preceding keyword.
    multiple-common:
      COMMON block declared in multiple statements. No warning is given if the statements are consecutive except for comment lines.
    multiple-namelist:
      NAMELIST declared in multiple statements. No warning is given if the statements are consecutive except for comment lines.
    parentheses:
      Parentheses around a variable by itself. As a subprogram argument, this makes the argument an expression, not modifiable by the subprogram.

    Note that in free source form, extra space and missing space are forbidden by the Fortran 90 Standard, and are not mere style violations. In this case the warnings are replaced by syntax error messages, and can be turned off only by using -nocheck.

    See also: -f77, -portability, -style.

  Next: -project