History log of /src/tests/usr.bin/xlint/lint1/d_gcc_compound_statements2.c |
Revision | | Date | Author | Comments |
1.6 |
| 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.5 |
| 26-Feb-2022 |
rillig | lint: fix memory corruption in statement expressions (since 2021-12-17)
The commit that introduced the assertion failure looks innocent, it only adds a few predefined functions for GCC mode. Nevertheless, before that commit, lint consistently complained about 'error: void type illegal in expression [109]', which doesn't make sense either.
This fix also removes the creative use of the initialization stack to store the type of the statement expression. Having a separate stack for these statement expressions makes the code easier to understand.
|
1.4 |
| 10-Sep-2021 |
rillig | lint: replace space followed by tab with simply tab
No functional change.
|
1.3 |
| 23-Apr-2021 |
rillig | tests/lint: test GCC compound expression without declaration
|
1.2 |
| 31-Jan-2021 |
rillig | lint: add common header for all tests
For those tests that didn't use GCC-style line markers such as "# 2", the line numbers of the diagnostics stay the same. This is purely conincidental. Before, the 3 lines came from lint's built-in definitions (see 'builtins' in main1.c), and line number counting continued as if nothing had happened, making the first line of the actual file line 4. These 3 built-in lines are now replaced with 3 lines of file header.
|
1.1 |
| 17-Mar-2012 |
jruoho | branches: 1.1.2; Deprecate tests/util.
|
1.1.2.2 |
| 17-Apr-2012 |
yamt | sync with head
|
1.1.2.1 |
| 17-Mar-2012 |
yamt | file d_gcc_compound_statements2.c was added on branch yamt-pagecache on 2012-04-17 00:09:23 +0000
|