Lines Matching full:warning
19 0 / (0 ? 1 : 0); // expected-warning {{expression result unused}}
24 PR8876(0); // no-warning
25 PR8876_pos(0); // expected-warning{{indirection of non-volatile null pointer will be deleted, not trap}} expected-note{{consider using __builtin_trap() or qualifying pointer with 'volatile'}}
33 (void)((((void*)0)) && (*((unsigned long long*)(((void*)0))) = ((unsigned long long)((test)) % (unsigned long long)((1000000000))))); // no-warning
34 (*((unsigned long long*)(((void*)0))) = ((unsigned long long)((test)) % (unsigned long long)((1000000000)))); // expected-warning {{indirection of non-volatile null pointer will be deleted, not trap}} expected-note {{consider using __builtin_trap() or qualifying pointer with 'volatile'}}
43 return 1.0if; // expected-warning {{imaginary constants are a GNU extension}}
55 var =+ 5; // expected-warning {{use of unary operator that may be intended as compound assignment (+=)}}
56 var =- 5; // expected-warning {{use of unary operator that may be intended as compound assignment (-=)}}
57 var = +5; // no warning when space between the = and +.
60 var =+5; // no warning when the subexpr of the unary op has no space before it.
64 var=-FIVE; // no warning with macros.
122 return X == "foo"; // expected-warning {{comparison against a string literal is unspecified (use strncmp instead)}}
126 return sizeof(X == "foo"); // no-warning
158 x = x / 0; // expected-warning {{division by zero is undefined}}
159 x = x % 0; // expected-warning {{remainder by zero is undefined}}
160 x /= 0; // expected-warning {{division by zero is undefined}}
161 x %= 0; // expected-warning {{remainder by zero is undefined}}
163 x = sizeof(x/0); // no warning.
184 *(int*)0 = 0; // expected-warning {{indirection of non-volatile null pointer}} \
189 int x = *(int*)0; // expected-warning {{indirection of non-volatile null pointer}} \
196 return x && 4; // expected-warning {{use of logical '&&' with constant operand}} \
198 // expected-note {{remove constant to silence this warning}}
200 return x && sizeof(int) == 4; // no warning, RHS is logical op.
202 // no warning, this is an idiom for "true" in old C style.
207 return x || -1; // expected-warning {{use of logical '||' with constant operand}} \
209 return x || 5; // expected-warning {{use of logical '||' with constant operand}} \
213 return x && -1; // expected-warning {{use of logical '&&' with constant operand}} \
215 // expected-note {{remove constant to silence this warning}}
216 return x && 5; // expected-warning {{use of logical '&&' with constant operand}} \
218 // expected-note {{remove constant to silence this warning}}
221 return x || (-1); // expected-warning {{use of logical '||' with constant operand}} \
223 return x || (5); // expected-warning {{use of logical '||' with constant operand}} \
227 return x && (-1); // expected-warning {{use of logical '&&' with constant operand}} \
229 // expected-note {{remove constant to silence this warning}}
230 return x && (5); // expected-warning {{use of logical '&&' with constant operand}} \
232 // expected-note {{remove constant to silence this warning}}
248 if (test22) // expected-warning {{address of function 'test22' will always evaluate to 'true'}} \
249 // expected-note {{prefix with the address-of operator to silence this warning}}