"Tautological pointer comparison" build failure(s)
clang 3.3
Incorrect code...
#include
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) { }
}
gcc with -Wall also detects some of these errors but not the one involving NULL.
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 |
710408
|
1 errors