Last change
on this file since 92aeae1 was
10b5970,
checked in by Michael Brooks <mlbrooks@…>, 4 months ago
|
Fix many test-suite- and libcfa-caused unused variable warnings.
In scope are easy fixes among tests whose sole warnings were unused variable. Reduces the wflags lax list by 40%.
|
-
Property mode set to
100644
|
File size:
405 bytes
|
Rev | Line | |
---|
[51b73452] | 1 | int main() { |
---|
[66812dd] | 2 | int *v1; |
---|
| 3 | typeof(v1) v2; |
---|
| 4 | typeof(*v1) v3[4]; |
---|
| 5 | char *v4[4]; |
---|
| 6 | typeof(typeof(char *)[4]) v5; |
---|
| 7 | typeof (int *) v6; |
---|
| 8 | typeof( int ( int, int p ) ) *v7; |
---|
| 9 | typeof( [int] ( int, int p ) ) *v8; |
---|
| 10 | (typeof(v1)) v2; // cast with typeof |
---|
| 11 | printf( "done\n" ); // non-empty .expect file |
---|
[10b5970] | 12 | |
---|
| 13 | // FIX ME: work around Trac #300 |
---|
| 14 | (void) v1; |
---|
| 15 | (void) v3; |
---|
| 16 | (void) v4; |
---|
| 17 | (void) v5; |
---|
| 18 | (void) v6; |
---|
| 19 | (void) v7; |
---|
| 20 | (void) v8; |
---|
[51b73452] | 21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.