History log of /src/tests/usr.bin/xlint/lint1/gcc_cast_union.c |
Revision | | Date | Author | Comments |
1.4 |
| 07-Jul-2023 |
rillig | lint: warn about function definitions without header declaration
The existing warning was only issued for function declarations, not for function definitions.
The interesting change in the tests is in msg_351.c. Many other tests use non-static functions due to their syntactic brevity. In these tests, the warning is disabled individually, to allow new functions to be added without generating warning 351.
|
1.3 |
| 03-Aug-2021 |
rillig | lint: in strict enum mode, error out on enum type mismatch in union cast
|
1.2 |
| 03-Aug-2021 |
rillig | 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.
|
1.1 |
| 03-Aug-2021 |
rillig | tests/lint: test GCC extension for casting to union type
|