summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--m4/dpkg-compiler.m42
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index a1507a3b0..c988db671 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ dpkg (1.19.0) UNRELEASED; urgency=medium
new required Perl contains the needed functions.
* Build system:
- Require Perl 5.20.2, the version in Debian oldstable (jessie).
+ - Use new gcc-7 -Wrestrict and -Wshift-negative-value warnings if
+ available.
-- Guillem Jover <guillem@debian.org> Thu, 18 May 2017 05:27:31 +0200
diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
index ad11c1943..8acd3998c 100644
--- a/m4/dpkg-compiler.m4
+++ b/m4/dpkg-compiler.m4
@@ -62,7 +62,9 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [
DPKG_CHECK_COMPILER_FLAG([-Winit-self])
DPKG_CHECK_COMPILER_FLAG([-Wwrite-strings])
DPKG_CHECK_COMPILER_FLAG([-Wcast-align])
+ DPKG_CHECK_COMPILER_FLAG([-Wrestrict])
DPKG_CHECK_COMPILER_FLAG([-Wshadow])
+ DPKG_CHECK_COMPILER_FLAG([-Wshift-negative-value])
DPKG_CHECK_COMPILER_FLAG([-Wduplicated-cond])
DPKG_CHECK_COMPILER_FLAG([-Wnull-dereference])