Lines Matching full:warning
15 if (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
17 // expected-note{{place parentheses around the assignment to silence this warning}}
20 } while (x = 7); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
22 // expected-note{{place parentheses around the assignment to silence this warning}}
25 while (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
27 // expected-note{{place parentheses around the assignment to silence this warning}}
30 for (; x = 7; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
32 // expected-note{{place parentheses around the assignment to silence this warning}}
35 if (p = p) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
37 // expected-note{{place parentheses around the assignment to silence this warning}}
40 } while (p = p); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
42 // expected-note{{place parentheses around the assignment to silence this warning}}
45 while (p = p) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
47 // expected-note{{place parentheses around the assignment to silence this warning}}
49 for (; p = p; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
51 // expected-note{{place parentheses around the assignment to silence this warning}}
61 if (x = (b+b).foo()) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
63 // expected-note{{place parentheses around the assignment to silence this warning}}
66 } while (x = (b+b).foo()); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
68 // expected-note{{place parentheses around the assignment to silence this warning}}
71 while (x = (b+b).foo()) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
73 // expected-note{{place parentheses around the assignment to silence this warning}}
75 for (; x = (b+b).foo(); ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
77 // expected-note{{place parentheses around the assignment to silence this warning}}
81 if (a = b + b) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
83 // expected-note{{place parentheses around the assignment to silence this warning}}
86 } while (a = b + b); // expected-warning {{using the result of an assignment as a condition without parentheses}} \
88 // expected-note{{place parentheses around the assignment to silence this warning}}
91 while (a = b + b) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
93 // expected-note{{place parentheses around the assignment to silence this warning}}
95 for (; a = b + b; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
97 // expected-note{{place parentheses around the assignment to silence this warning}}
101 if (x |= 2) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
103 // expected-note{{place parentheses around the assignment to silence this warning}}
105 if (a |= b) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \
107 // expected-note{{place parentheses around the assignment to silence this warning}}
109 if ((x == 5)) {} // expected-warning {{equality comparison with extraneous parentheses}} \
111 // expected-note {{remove extraneous parentheses around the comparison to silence this warning}}
115 if ((x == 5)) {} // no-warning
128 if ((fn == test2)) {} // expected-warning {{equality comparison with extraneous parentheses}} \
130 // expected-note {{remove extraneous parentheses around the comparison to silence this warning}}
137 if ((t.g == 3)) { } // expected-warning {{equality comparison with extraneous parentheses}} \
139 // expected-note {{remove extraneous parentheses around the comparison to silence this warning}}