Module Name: src Committed By: rillig Date: Tue Aug 3 21:09:26 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: gcc_cast_union.c gcc_cast_union.exp src/usr.bin/xlint/lint1: tree.c Log Message: lint: merge almost duplicate code from 'sametype' into 'eqtype' In 'sametype', the branch for comparing array types was unreachable since it requires both tspecs to be the same, but t2 underwent the array-to-pointer conversion. Previously, lint warned about enum type mismatches, even without -e for strict enum mode. Instead, it got the case for 'char *' wrong, which is now fixed. Now lint behaves like GCC 10.3.0 in this regard. The warning about enum mismatch is useful though, so it may be re-added in a future commit. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/gcc_cast_union.c \ src/tests/usr.bin/xlint/lint1/gcc_cast_union.exp cvs rdiff -u -r1.329 -r1.330 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.