Table of Contents

Previous: OPTIONS

## Option: arguments

-arguments=list
    Controls warnings about mismatches between actual and dummy subprogram arguments, and also about mismatches between expected and actual subprogram type. (An actual argument is an argument passed to the subprogram by the caller; a dummy argument is an argument received by the subprogram.) By default, all warnings are turned on.

    The list consists of keywords separated by commas or colons. Since all these 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 arguments, 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, -arguments is equivalent to -arguments=all, and -noarguments is equivalent to -arguments=none. The warning keywords with their meanings are as follows:

    arrayness:
      warn about inconsistent use of arguments that are arrays. These warnings can be further controlled by the -array option.
    type:
      warn about dummy arguments of a different data type from the actual arguments.
    function-type:
      warn if the invocation assumes the function's return value is a different type than it actually is. Also warns if a function is called as a subroutine, or vice-versa.
    number:
      warn about invoking a subprogram with a different number of arguments than the subprogram expects.

    For compatibility with previous versions of ftnchek, a numeric form of this setting is also accepted: the list is replaced by a number from 0 to 3. A value of 0 turns all the warnings off, 1 turns on only number, 2 turns on all except number, and 3 turns all the warnings on.

    This setting does not apply to checking invocations of intrinsic functions or statement functions, which can only be turned off by the -nocheck option.

    See also: -array, -library, -usage.

  Next: -array