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:           Wed Nov 13 04:32:50 UTC 2024

Modified Files:
        src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c
            d_c99_bool_strict_syshdr.c expr_range.c msg_130.c msg_161.c
            msg_193.c msg_207.c msg_217.c msg_249.c msg_333.c msg_379.c
        src/usr.bin/xlint/lint1: cgram.y err.c externs1.h func.c init.c tree.c

Log Message:
lint: add more details to 'statement not reached' message

In lib/libcompat/regexp/regexp.c, the FAIL macro expands to a compound
statement containing a function call statement and a return statement,
and the macro invocation is followed by a semicolon, forming an extra
empty statement.  Which of these statements is unreachable now becomes
clear from the diagnostic, without having to inspect the preprocessed
source code.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.24 -r1.25 \
    src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/expr_range.c
cvs rdiff -u -r1.16 -r1.17 src/tests/usr.bin/xlint/lint1/msg_130.c
cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/xlint/lint1/msg_161.c
cvs rdiff -u -r1.21 -r1.22 src/tests/usr.bin/xlint/lint1/msg_193.c
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/xlint/lint1/msg_207.c
cvs rdiff -u -r1.14 -r1.15 src/tests/usr.bin/xlint/lint1/msg_217.c
cvs rdiff -u -r1.15 -r1.16 src/tests/usr.bin/xlint/lint1/msg_249.c
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/xlint/lint1/msg_333.c
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_379.c
cvs rdiff -u -r1.514 -r1.515 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.252 -r1.253 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.234 -r1.235 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.188 -r1.189 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.270 -r1.271 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.657 -r1.658 src/usr.bin/xlint/lint1/tree.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