|
|
These options suppress specific messages:
assignment causes implicit narrowing conversion
conversion to larger integral type may sign-extend incorrectly
statement not reached
assignment operator "=" found where equality operator "==" was expected
constant operand to op: "!"
fallthrough on case statement
pointer cast may result in improper alignment
precedence confusion possible; parenthesize
statement has no consequent: if
statement has no consequent: else
declared global, could be static
name defined but never used
name used but not defined
argument unused in function
name declared but never used or defined
conversion to larger integral type may sign-extend incorrectly
may be indistinguishable due to truncation or case
pointer casts may be troublesome
nonportable bit-field type
suspicious comparison of char with
value: op "
op"
bitwise operation on signed value nonportable
function must return int: main()
may be indistinguishable due to truncation or case
only 0 or 2 parameters allowed: main()
nonportable character constant
/ LINTED [
msg] /
, print info:
msg.
/ LINTLIBRARY /
to create lint
libraries.
/ LINTLIBRARY /
.
/* ARGSUSED
n */
argument unused in function
/ CONSTCOND /
constant in conditional context
"
constant operand to op: "!"
"
logical expression always false: op "&&"
"
logical expression always true: op "||"
"
/ CONSTANTCONDITION /
.
/ EMPTY /
statement has no consequent: else
"
statement has no consequent: if
"
/ FALLTHRU /
fallthrough on case statement
"
/ FALLTHROUGH /
.
/ LINTED [
msg] /
argument unused in function
"
declaration unused in block
"
set but not used in function
"
static unused
"
variable unused in function
"
/ LINTLIBRARY /
/ NOTREACHED /
statement not reached
"
fallthrough on case statement
"
function falls off bottom without returning value
"
/ PRINTFLIKE
n /
malformed format string
"
function argument type inconsistent with format
"
too few arguments for format
"
too many arguments for format
"
/ PROTOLIB
n /
/ LINTLIBRARY /
is used, write to a library .ln file only
function prototype declarations in the .c file it heads.
Default is 0, cancelling the process.
/ SCANFLIKE
n /
/ PRINTFLIKE
n /
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 libraries.
/ VARARGS
n /
function called with variable number of arguments
"