|
Last change
on this file since 4d5c5b6a was 10b5970, checked in by Michael Brooks <mlbrooks@…>, 10 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:
378 bytes
|
| Line | |
|---|
| 1 | // Test our new cfa_linkonce attribute:
|
|---|
| 2 |
|
|---|
| 3 | __attribute__(( cfa_linkonce )) signed int example = 7;
|
|---|
| 4 | __attribute__(( cfa_linkonce )) unsigned int example = 12;
|
|---|
| 5 |
|
|---|
| 6 | __attribute__(( cfa_linkonce ))
|
|---|
| 7 | void printformat(signed int signed_value, unsigned int unsigned_value) {
|
|---|
| 8 | printf("signed=%d unsigned=%d\n", signed_value, unsigned_value);
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | int main() {
|
|---|
| 12 | printformat(example, example);
|
|---|
| 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.