Lines Matching full:warn
45 f(g(malloc(1)), h()); // warn: 'g()' may never be called.
57 f(g(new int), h()); // warn: 'g()' may never be called.
76 strcpy(s2, s1); // warn
83 memcpy(p2, p1, 3); // warn
102 p = new int[n1]; // warn
120 int *p = malloc(0); // warn
126 int *p = new int[0]; // warn
152 ~A() { throw 1; } // warn
160 ~A() { f(); } // warn
176 ::new (dst) A(*dst); // warn (should be 'src')
201 int y = va_arg(args, int); // warn
211 int z = va_arg(args, int); // warn
234 } // warn: missing va_end
255 } // warn
268 throw(1); // warn
285 throw (s); // warn
316 std::auto_ptr<int> p2(new int[3]); // warn
324 std::auto_ptr<int> p((int *)malloc(sizeof(int))); // warn
350 // warn: forgot to modify 'i'
360 Warn about idempotent operations.</div></div></td>
365 x = x; // warn: value is always the same
371 x /= x; // warn: value is always 1
377 x *= one; // warn: right op is always 1
384 // warn: the right operand to '-' is always 0
417 print("%d", count); // should not warn
443 std::exit(1); // warn
465 f(); // warn
494 *p = 1; // warn
503 f(*p); // warn
541 delete a; // warn
577 f(b); // warn
595 return static_cast<A*>(b); // warn
613 return dynamic_cast<A*>(b); // warn
639 } // warn
654 delete b; // warn
672 i = ++i + 1; // warn
688 static int s = test(2 * i); // warn
705 *p = 1; // warn
720 cp->i = 1; // warn
744 } // warn
764 B() : A(f()) {} // warn
787 int *p = &non_pod.i; // warn
800 int *p = &non_pod.pod.i; // warn
811 POD *p = &non_pod; // warn
822 S() : k(&non_pod.i) {} // warn
847 c->f(); // warn
868 B(A* a) { a->f(); } // warn
895 (void)typeid(*a); // warn
926 (void)dynamic_cast<B*>(a); //warn
957 i=2; // warn
975 i=2; // warn
997 } // warn
1016 std::auto_ptr<int> q(data); // warn
1036 char c = s[10]; // warn
1044 s[10] = 0; // warn
1062 return *v.end(); // warn
1091 qsort(values, 2, sizeof(non_POD), compare); // warn
1118 qsort(nt, 2, sizeof(non_trivial), compare2); // warn
1136 throw 1; // warn
1147 throw 1; // warn
1173 std::valarray<S> v(s,3); // warn
1193 a = b; // warn
1204 a *= b; // warn
1213 a = a + b; // warn
1223 c = a == b; // warn
1243 v.sum(); // warn
1264 a[indirect] = b; //warn
1275 a[indirect] *= b; //warn
1312 delete p1; // warn
1349 p1->narrow('a', 'b'); // warn
1369 seekpos(-1); // warn
1380 in.seekg(pos); // warn
1403 i=2; // warn
1427 int x1 = p1->x; // warn
1452 if (p->i && p) {}; // warn
1469 int getJ() { return i; } // warn
1478 void setJ(int& jj) { i = jj; } // warn
1493 int i; // warn
1512 v.empty(); // warn
1529 for (i = 0; i < 3; j += 1); // warn
1536 for (int j = 0; i < 3; ++j); // warn
1552 if (b == 0.5) // warn
1572 if (b & f()) {} // warn
1589 defalt: // warn (did you mean 'default'?)
1607 if (c > 5) // warn
1623 if (a<7 && a<10) {}; // warn
1637 if (i != 0) {}; // warn
1642 if (i == 0 && i == 1) {}; // warn
1647 if (i < 0 || i >= 0) {}; // warn
1666 if((x = f() != y)) {} // warn
1683 std::cout << a ? "a" : "b"; // warn
1688 a << a > 7 ? 1 : 2; // warn
1704 S(xx, 0); // warn
1713 // warn (did you mean 'throw std::exception()'?)
1728 if (a[0] == 0) {}; // warn
1743 return 1.; // warn
1748 return ""; // warn
1765 if(p[i]) {}; // warn
1782 strcpy(buf, string); // warn
1803 f(INT_MAX + 1); // warn
1811 return x * 2; // warn
1826 unsigned long long ull = sll; // warn
1834 f(si); // warn
1854 unsigned long ul = ull; // warn
1862 f(sll); // warn
1886 int *p; // warn
1922 // warn
1942 return LoadLibrary(filePath); // warn
1964 3, NULL, NULL); // warn
1987 void f(const struct A a); // warn
2008 it != v.end(); it++) {}; // warn
2026 strlen(s) < 7) {}; // warn
2044 if (strlen(s.c_str()) != 0) {}; // warn
2061 if (l.size() != 0) {}; // warn