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:           Sun Mar 28 15:36:37 UTC 2021

Modified Files:
        src/tests/usr.bin/xlint/lint1: msg_050.exp msg_054.exp msg_081.exp
            msg_082.exp msg_100.exp msg_186.exp msg_188.exp msg_189.c
            msg_189.exp msg_219.exp
        src/usr.bin/xlint/lint1: main1.c

Log Message:
lint: only define GCC builtins if -g is given

This removes 7 wrong warnings when running lint in -t mode.

Surprisingly, this added a warning that had not been there before in
msg_189.c.  This is because check_variable_usage skips the checks when
an error occurred before.  All diagnostics that happened were warnings,
but the -w option treats them as errors, see vwarning.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_050.exp \
    src/tests/usr.bin/xlint/lint1/msg_054.exp \
    src/tests/usr.bin/xlint/lint1/msg_081.exp \
    src/tests/usr.bin/xlint/lint1/msg_082.exp \
    src/tests/usr.bin/xlint/lint1/msg_100.exp \
    src/tests/usr.bin/xlint/lint1/msg_189.c \
    src/tests/usr.bin/xlint/lint1/msg_189.exp \
    src/tests/usr.bin/xlint/lint1/msg_219.exp
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_186.exp \
    src/tests/usr.bin/xlint/lint1/msg_188.exp
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/xlint/lint1/main1.c

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