/* ARGSUSEDn */-
Suppress:
-
argument unused in function
for every argument but the first n in the
function definition it precedes.
Default is 0.
/* CONSTCOND */-
Suppress:
-
constant in conditional context
-
constant operand to op: "!"
-
logical expression always false: op "&&"
-
logical expression always true: op "||"
for the constructs it precedes.
Also
/ CONSTANTCONDITION /.
/* EMPTY */-
Suppress:
-
statement has no consequent: else
when inserted between the else and semicolon;
-
statement has no consequent: if
when inserted between the controlling expression
of the if and semicolon.
/* FALLTHRU */-
Suppress:
-
fallthrough on case statement
for the case statement it precedes.
Also
/ FALLTHROUGH /.
/* LINTED [msg] */-
When -k is not invoked, suppress every warning
pertaining to an intrafile problem except:
-
argument unused in function
-
declaration unused in block
-
set but not used in function
-
static unused
-
variable unused in function
for the line of code it precedes.
msg is ignored.
/* LINTLIBRARY */-
When -o is invoked, write to a library .ln
file only definitions in the .c file it heads.
/* NOTREACHED */-
Suppress:
for the unreached statements it precedes;
-
fallthrough on case statement
for the case it precedes that cannot be reached from the preceding case;
-
function falls off bottom without returning value
for the closing curly brace it precedes at the
end of the function.
/* PRINTFLIKEn */-
Treat the nth argument of the function
definition it precedes as a [fs]printf format
string and issue:
for invalid conversion specifications in
that argument, and
-
function argument type inconsistent with format
-
too few arguments for format
-
too many arguments for format
for mismatches between the remaining
arguments and the conversion specifications.
lint issues these warnings by default
for errors in calls to [fs]printf functions
provided by the standard C library.
/* PROTOLIBn */-
When n is 1 and / LINTLIBRARY /
is used, write to a library .ln file only
function prototype declarations in the .c file it heads.
Default is 0, canceling the process.
/* SCANFLIKEn */-
Same as / PRINTFLIKEn / except that
the nth argument of the function
definition is treated as a [fs]scanf format string.
By default, lint issues warnings for
errors in calls to [fs]scanf functions provided
by the standard C library.
/* VARARGSn */-
For the function whose definition it precedes, suppress:
-
function called with variable number of arguments
for calls to the function with n or more arguments.