浏览代码

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

This emits a false positive for the test suite.

Warned-by: clang
Guillem Jover 10 年之前
父节点
当前提交
4cef597299
共有 2 个文件被更改,包括 2 次插入0 次删除
  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])