Lines Matching full:warning
7 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
8 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
13 return x; // no-warning
19 return x; // no-warning
23 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
24 ++x; // expected-warning{{variable 'x' is uninitialized when used here}}
29 int x, y; // expected-note{{initialize the variable 'y' to silence this warning}}
30 x = y; // expected-warning{{variable 'y' is uninitialized when used here}}
35 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
36 x += 2; // expected-warning{{variable 'x' is uninitialized when used here}}
41 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
42 if (y) // expected-warning{{variable 'x' is used uninitialized whenever 'if' condition is false}} \
54 // warning.
55 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
68 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
74 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
78 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
82 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
86 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
90 return x; // expected-warning{{variable 'x' may be uninitialized when used here}}
94 for (unsigned i ; n ; ++i) ; // expected-warning{{variable 'i' is uninitialized when used here}} expected-note{{initialize the variable 'i' to silence this warning}}
99 return i; // no-warning
109 int x = x; // no-warning: signals intended lack of initialization.
115 int x = x; // expected-warning {{variable 'x' is uninitialized when used within its own initialization}}
124 p[i] = 'a'; // no-warning
130 int *x; // expected-note{{initialize the variable 'x' to silence this warning}}
131 *x = 1; // expected-warning{{variable 'x' is uninitialized when used here}}
132 *x = 1; // no-warning
138 return z; // no-warning
149 return z; // no-warning
154 int z; // expected-note{{initialize the variable 'z' to silence this warning}}
155 if ((test19_aux1() + test19_aux2() && test19_aux1()) || test19_aux3(&z)) // expected-warning {{variable 'z' is used uninitialized whenever '||' condition is true}} expected-note {{remove the '||' if its condition is always false}}
161 int z; // expected-note{{initialize the variable 'z' to silence this warning}}
162 if ((x && y) || test19_aux3(&z) || test19_aux2()) // expected-warning {{variable 'z' is used uninitialized whenever '||' condition is true}} expected-note {{remove the '||' if its condition is always false}}
170 return z; // no-warning
177 return z; // no-warning
186 unsigned val; // expected-note{{initialize the variable 'val' to silence this warning}}
191 return val; // expected-warning{{variable 'val' may be uninitialized when used here}}
195 float x; // expected-note{{initialize the variable 'x' to silence this warning}}
196 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
201 MyInt x; // expected-note{{initialize the variable 'x' to silence this warning}}
202 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
208 return sizeof(y->x); // no-warning
212 int len; // expected-note{{initialize the variable 'len' to silence this warning}}
213 return sizeof(int[len]); // expected-warning{{variable 'len' is uninitialized when used here}}
217 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
218 (void) ^{ (void) x; }; // expected-warning{{variable 'x' is uninitialized when captured by block}}
222 static int x; // no-warning
227 __block int x; // no-warning
233 (void) ^{ (void) test32_x; }; // no-warning
237 int x; // no-warning
242 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
244 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
256 void **pc; // expected-note{{initialize the variable 'pc' to silence this warning}}
259 goto *pc; // expected-warning{{variable 'pc' is uninitialized when used here}}
272 return identifier; // no-warning
285 int y; // expected-note{{initialize the variable 'y' to silence this warning}}
286 int z = x + y; // expected-warning {{variable 'y' is uninitialized when used here}}
292 int y; // expected-note{{initialize the variable 'y' to silence this warning}}
293 return x ? 1 : y; // expected-warning {{variable 'y' is uninitialized when used here}}
297 int y; // expected-note{{initialize the variable 'y' to silence this warning}}
298 if (x) y = 1; // expected-warning{{variable 'y' is used uninitialized whenever 'if' condition is false}} \
305 a = 30; // no-warning
310 int x; // expected-note{{initialize the variable 'x' to silence this warning}}
312 test43_aux(x++); // expected-warning {{variable 'x' is uninitialized when used here}}
317 int y; // expected-note{{initialize the variable 'y' to silence this warning}}
319 test43_aux(x++); // no-warning
320 x += y; // expected-warning {{variable 'y' is uninitialized when used here}}
326 if (y) // no-warning
333 int i; // expected-note{{initialize the variable 'i' to silence this warning}}
334 int j = i ? : 1; // expected-warning {{variable 'i' is uninitialized when used here}}
339 return i ? : 0; // no-warning
345 return &a ? : i; // no-warning
350 char c[1 ? : 2]; // no-warning
359 return a; // no-warning
364 int x; // expected-note {{initialize the variable 'x' to silence this warning}}
365 switch (a || b) { // expected-warning {{switch condition has boolean value}}
373 return x; // expected-warning {{variable 'x' may be uninitialized when used here}}
377 int x; // expected-note {{initialize the variable 'x' to silence this warning}}
378 int y = (x); // expected-warning {{variable 'x' is uninitialized when used here}}
381 // This CFG caused the uninitialized values warning to inf-loop.
384 int new_len; // expected-note{{initialize the variable 'new_len' to silence this warning}}
392 *len += new_len; // expected-warning {{variable 'new_len' may be uninitialized when used here}}
396 // Test that sizeof(VLA) doesn't trigger a warning.
398 double (*memory)[2][x] = malloc(sizeof(*memory)); // no-warning
408 return x; // no-warning
419 // This does not trigger a warning because it isn't a real use.
420 (void)(flags); // no-warning
426 int i; // expected-note {{initialize the variable 'i' to silence this warning}}
427 for (; i < 10000; ++i) // expected-warning {{variable 'i' is uninitialized when used here}}
435 UNINIT(int, a, b); // expected-warning {{variable 'a' is uninitialized when used here}} \
437 int c; // expected-note {{initialize the variable 'c' to silence this warning}}
438 ASSIGN(int, c, d); // expected-warning {{variable 'c' is uninitialized when used here}}
442 struct { struct { void *p; } a; } test55 = { { &test55.a }}; // no-warning
443 struct { struct { void *p; } a; } test56 = { { &(test56.a) }}; // no-warning
450 consume(k); // expected-warning {{variable 'k' is uninitialized}}
465 consume(k); // expected-warning {{variable 'k' may be uninitialized}}
477 if (!a) { // expected-warning {{variable 'a' is uninitialized}}
483 a = b; // no warning
492 sum += arr[i]; // expected-warning {{variable 'sum' is uninitialized}}
498 return x += 1; // expected-warning {{variable 'x' is uninitialized}}
503 x *= 0; // expected-warning {{variable 'x' is uninitialized}}
515 int x; // expected-note {{initialize the variable 'x' to silence this warning}}
518 ++x; // no-warning
521 ++x; // expected-warning {{variable 'x' is uninitialized when used here}}
532 ++x; // no-warning