Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   rillig
Date:           Thu Apr 10 20:16:30 UTC 2025

Modified Files:
        src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c msg_239.c
        src/usr.bin/xlint/lint1: externs1.h func.c lex.c lint1.h tree.c
        src/usr.bin/xlint/xlint: lint.1

Log Message:
lint: do not warn about constant operand of '!'

Like its related warning about a constant condition, the purpose of this
warning is unclear, and suppressing the warning requires special lint
comments, thus cluttering the code.

The message itself is still kept in err.c to keep the '-X 239' option
valid. These LINTFLAGS will be removed in a follow-up commit.

The lint comments /* CONSTCOND */, as well as its more verbose forms /*
CONSTANTCOND */ and /* CONSTANTCONDITION */ are no longer needed and can
be removed.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/xlint/lint1/msg_239.c
cvs rdiff -u -r1.238 -r1.239 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.192 -r1.193 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.234 -r1.235 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.233 -r1.234 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.678 -r1.679 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -u -r1.66 -r1.67 src/usr.bin/xlint/xlint/lint.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index