Source-Changes archive

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

CVS commit: src/usr.bin/xlint



Module Name:    src
Committed By:   rillig
Date:           Sat Aug 28 13:29:27 UTC 2021

Modified Files:
        src/usr.bin/xlint/common: mem.c tyname.c
        src/usr.bin/xlint/lint1: cgram.y func.c lex.c main1.c mem1.c

Log Message:
lint: explicitly ignore return value of some function calls

This fixes the warning from lint2 that these functions return values
which are sometimes ignored.

The remaining calls to fprintf that ignore the return value come from
scan.c.  Lint does not currently detect the auto-generated portions of
that file and the interesting ones since it assumes that scan.c is the
main filename, see expr_zalloc_tnode.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/xlint/common/mem.c
cvs rdiff -u -r1.44 -r1.45 src/usr.bin/xlint/common/tyname.c
cvs rdiff -u -r1.358 -r1.359 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.121 -r1.122 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.72 -r1.73 src/usr.bin/xlint/lint1/lex.c
cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/lint1/mem1.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