Browse Source

build: Disable -Wtautological-constant-out-of-range-compare

This emits a false positive for the test suite.

Warned-by: clang
Guillem Jover 7 years ago
parent
commit
4cef597299
2 changed files with 2 additions and 0 deletions
  1. 1 0
      debian/changelog
  2. 1 0
      m4/dpkg-compiler.m4

+ 1 - 0
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).

+ 1 - 0
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])