Last change
on this file since 1cc5c6a was 10b5970, checked in by Michael Brooks <mlbrooks@…>, 8 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:
368 bytes
|
Line | |
---|
1 | // Testing non-polymorphic sizeof (and alignof) expressions:
|
---|
2 |
|
---|
3 | #include <fstream.hfa>
|
---|
4 |
|
---|
5 | int main() {
|
---|
6 | char val = 'c';
|
---|
7 | char & ref = val;
|
---|
8 | // It could check against "char *", but it should always be different.
|
---|
9 | sout | "char : " | sizeof(val) | alignof(val);
|
---|
10 | sout | "char &: " | sizeof(ref) | alignof(ref);
|
---|
11 |
|
---|
12 | // FIX ME: work around Trac #300
|
---|
13 | (void) val;
|
---|
14 | (void) ref;
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.