"Tautological pointer comparison" build failure(s) — clang 3.3
Incorrect code...#includegcc with -Wall also detects some of these errors but not the one involving NULL.void foo() { int arr[5]; int x; // warn on these conditionals if (foo); if (arr); if (&x); if (foo == NULL); if (arr == NULL); if (&x == NULL); } void f(int &x) { if (&x == nullptr) { } }
| Package | Version | Supposed error message | Full log | Bug report |
|---|---|---|---|---|
| atom4 | 4.1-5.1 | ncurses/textui.cc:77:32: error: comparison of constant -1 with expression of type 'bool' is always false [-Werror,-Wtautological-constant-out-of-range-compare] | Log |
1 errors