Module Name: src Committed By: rillig Date: Tue Aug 31 18:59:26 UTC 2021
Modified Files: src/distrib/sets/lists/tests: mi src/tests/usr.bin/xlint/lint1: Makefile msg_259.c msg_259.exp Added Files: src/tests/usr.bin/xlint/lint1: msg_259_c90.c msg_259_c90.exp Log Message: tests/lint: add test for prototype conversions in C90 The purpose of warning 259 is to find function calls that differ in the ABI. The warning's original purpose was not to warn about lossy conversions, that's just a side effect. Warning 259 had been implemented before C99 was published, which is more than 20 years ago. In the meantime, almost all code has migrated to using function prototypes. With the default lint flags from NetBSD's <sys.mk>, it would rather make sense to focus on lossy conversions now. To prepare for potentially upcoming differences in lint's C90 and C99 modes, clone the test now as far as possible. The test for C90 mode is smaller than for C99 mode, since 'long long' was not available back then. To generate a diff of this commit: cvs rdiff -u -r1.1120 -r1.1121 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.107 -r1.108 src/tests/usr.bin/xlint/lint1/Makefile cvs rdiff -u -r1.14 -r1.15 src/tests/usr.bin/xlint/lint1/msg_259.c cvs rdiff -u -r1.11 -r1.12 src/tests/usr.bin/xlint/lint1/msg_259.exp cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/msg_259_c90.c \ src/tests/usr.bin/xlint/lint1/msg_259_c90.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.