Last change
on this file since 190a833 was
10b5970,
checked in by Michael Brooks <mlbrooks@…>, 2 weeks 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:
323 bytes
|
Line | |
---|
1 | forall( T & ) |
---|
2 | struct Proxy {}; |
---|
3 | |
---|
4 | struct MonoCell { |
---|
5 | Proxy(int) data; |
---|
6 | }; |
---|
7 | |
---|
8 | forall( T & ) |
---|
9 | struct PolyCell { |
---|
10 | Proxy(T) data; |
---|
11 | }; |
---|
12 | |
---|
13 | int main() { |
---|
14 | { |
---|
15 | MonoCell thing1; |
---|
16 | Proxy(int) & thing2 = thing1.data; |
---|
17 | (void) thing2; |
---|
18 | } |
---|
19 | |
---|
20 | { |
---|
21 | PolyCell(int) thing1; |
---|
22 | Proxy(int) & thing2 = thing1.data; |
---|
23 | (void) thing2; |
---|
24 | } |
---|
25 | |
---|
26 | printf("Done\n"); |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.