[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / warn-unused-but-set-parameters.c
blob4f000617cfcc43bdf3a3d764388d4f0b5f9505bc
1 // RUN: %clang_cc1 -fblocks -fsyntax-only -Wunused-but-set-parameter -verify %s
3 int f0(int x,
4 int y, // expected-warning{{parameter 'y' set but not used}}
5 int z __attribute__((unused))) {
6 y = 0;
7 return x;
10 void f1(void) {
11 (void)^(int x,
12 int y, // expected-warning{{parameter 'y' set but not used}}
13 int z __attribute__((unused))) {
14 y = 0;
15 return x;
19 struct S {
20 int i;
23 void f3(struct S s) { // expected-warning{{parameter 's' set but not used}}
24 struct S t;
25 s = t;
28 void f4(int j) { //TODO: warn
29 j++;
32 void f5(int k) { //TODO: warn
33 --k;