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:

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.

See also: -f77 , -portability .


Next: -project