Debian Package rebuild

Rebuild of the Debian archive with clang

"Tautological pointer comparison" build failure(s)
clang 3.5.0
Return to the list
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.
Versions: 2.9 - 3.0 - 3.1 - 3.2 - 3.3 - 3.4 - 3.4.2 - 3.5.0 - 3.6.0 - 3.8.1 - 3.9.1 - 4.0.1 - 5.0 - 6.0 - 8.0.1 - 9.0.1 - 10.0.0 - 11.0.0 - 12.0.1 - 13.0.0
PackageVersionSupposed error messageFull log Bug report
collectd 5.4.1-3.1curl_xml.c:388:24: error: comparison of array 'vl->type_instance' equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare] Log 758481
hidrd 0.2.0-11page.h:225:14: error: comparison of constant 65280 with expression of type 'hidrd_usage_page' (aka 'enum hidrd_usage_page') is always false [-Werror,-Wtautological-constant-out-of-range-compare] Log
ipsec-tools 1:0.8.2+20140711-1eaytest.c:316:6: error: comparison of array 'dnstr_w1' not equal to a null pointer is always true [-Werror,-Wtautological-pointer-compare] Log
libdvbpsi 1.2.0-1test_dr.c:49:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare] Log
libkqueue 2.0.3-1src/linux/read.c:207:74: error: comparison of constant 0 with boolean expression is always false [-Werror,-Wtautological-constant-out-of-range-compare] Log 729591
librcsb-core-wrapper 1.005-1src/TableFile.C:357:11: error: reference cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed to always evaluate to true [-Werror,-Wtautological-undefined-compare] Log
ltrace 0.7.3-4ltrace-elf.c:238:1: error: comparison of constant 0 with boolean expression is always false [-Werror,-Wtautological-constant-out-of-range-compare] Log
open-vm-tools 2:9.4.6-1770165-2hgfsServer.c:5630:30: error: comparison of constant 255 with expression of type 'HgfsOp' is always false [-Werror,-Wtautological-constant-out-of-range-compare] Log
spout 1.4-2spout.c:982:25: error: comparison of constant 128 with expression of type 'char' is always true [-Werror,-Wtautological-constant-out-of-range-compare] Log 812249
x11-apps 7.7+3../xman/handler.c:323:22: error: comparison of array 'man_globals->tempfile' equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare] Log
10 errors
Return to the list