Last change
on this file since b28ce93 was 10b5970, checked in by Michael Brooks <mlbrooks@…>, 9 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:
347 bytes
|
Line | |
---|
1 | #include <fstream.hfa>
|
---|
2 |
|
---|
3 | static struct { int a; } test; // purposefully before the include to force anonymous name numbering
|
---|
4 |
|
---|
5 | #include "header.hfa"
|
---|
6 |
|
---|
7 | int main() {
|
---|
8 | a_global_with_no_type.some_int = 6;
|
---|
9 | a_global_with_no_type.some_other_int = 7;
|
---|
10 |
|
---|
11 | a_typedefed_global.some_int = 8;
|
---|
12 | a_typedefed_global.a_float = 9.0f;
|
---|
13 |
|
---|
14 | (void) test;
|
---|
15 |
|
---|
16 | sout | "Done!";
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.