Lines Matching +full:unused +full:- +full:variable
1 // RUN: %clang_cc1 -verify -Wunused -Wused-but-marked-unused -Wunused-parameter -Wunused -fsyntax-o…
3 static void (*fp0)(void) __attribute__((unused));
5 static void __attribute__((unused)) f0(void);
8 int f1() __attribute__((unused));
10 int g0 __attribute__((unused));
12 int f2() __attribute__((unused(1, 2))); // expected-error {{'unused' attribute takes no arguments}}
14 struct Test0_unused {} __attribute__((unused));
16 typedef int Int_unused __attribute__((unused));
20 int x; // expected-warning {{unused variable}} in test0()
22 Int_not_unused i0; // expected-warning {{unused variable}} in test0()
23 Int_unused i1; // expected-warning {{'Int_unused' was marked unused but was used}} in test0()
25 struct Test0_not_unused s0; // expected-warning {{unused variable}} in test0()
26 struct Test0_unused s1; // expected-warning {{'Test0_unused' was marked unused but was used}} in test0()
29 int f3(int x) { // expected-warning{{unused parameter 'x'}} in f3()
42 return x; // expected-warning{{'x' was marked unused but was used}} in f6()