[dpkg] 11/187: build: Disable -Wtautological-constant-out-of-range-compare
Reiner Herrmann
reiner at reiner-h.de
Sun Nov 6 12:46:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository dpkg.
commit 4cef597299b9d9e7a229365f127156c46aacc51d
Author: Guillem Jover <guillem at debian.org>
Date: Thu Aug 25 01:07:07 2016 +0200
build: Disable -Wtautological-constant-out-of-range-compare
This emits a false positive for the test suite.
Warned-by: clang
---
debian/changelog | 1 +
m4/dpkg-compiler.m4 | 1 +
2 files changed, 2 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 481c7bf..a98cc68 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
- Fix typo in SE Linux library detection code, only affecting static
mode (not used in Debian). Regression introduced in dpkg 1.18.8.
- Change --with-* option logic to default to check.
+ - Disable -Wtautological-constant-out-of-range-compare (for clang).
[ Updated manpages translations ]
* German (Helge Kreutzmann).
diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
index cca6a2a..5ac9873 100644
--- a/m4/dpkg-compiler.m4
+++ b/m4/dpkg-compiler.m4
@@ -45,6 +45,7 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [
DPKG_CHECK_COMPILER_FLAG([-Wextra])
DPKG_CHECK_COMPILER_FLAG([-Wno-unused-parameter])
DPKG_CHECK_COMPILER_FLAG([-Wno-missing-field-initializers])
+ DPKG_CHECK_COMPILER_FLAG([-Wno-tautological-constant-out-of-range-compare])
DPKG_CHECK_COMPILER_FLAG([-Wmissing-declarations])
DPKG_CHECK_COMPILER_FLAG([-Wmissing-format-attribute])
DPKG_CHECK_COMPILER_FLAG([-Wformat -Wformat-security])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list