Quellcode durchsuchen

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

This emits a false positive for the test suite.

Warned-by: clang
Guillem Jover vor 10 Jahren
Ursprung
Commit
4cef597299
2 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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
     - Fix typo in SE Linux library detection code, only affecting static
       mode (not used in Debian). Regression introduced in dpkg 1.18.8.
       mode (not used in Debian). Regression introduced in dpkg 1.18.8.
     - Change --with-* option logic to default to check.
     - Change --with-* option logic to default to check.
+    - Disable -Wtautological-constant-out-of-range-compare (for clang).
 
 
   [ Updated manpages translations ]
   [ Updated manpages translations ]
   * German (Helge Kreutzmann).
   * 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([-Wextra])
   DPKG_CHECK_COMPILER_FLAG([-Wno-unused-parameter])
   DPKG_CHECK_COMPILER_FLAG([-Wno-unused-parameter])
   DPKG_CHECK_COMPILER_FLAG([-Wno-missing-field-initializers])
   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-declarations])
   DPKG_CHECK_COMPILER_FLAG([-Wmissing-format-attribute])
   DPKG_CHECK_COMPILER_FLAG([-Wmissing-format-attribute])
   DPKG_CHECK_COMPILER_FLAG([-Wformat -Wformat-security])
   DPKG_CHECK_COMPILER_FLAG([-Wformat -Wformat-security])