[dpkg] 36/192: build: Add new gcc-7 warnings
Ximin Luo
infinity0 at debian.org
Tue Oct 17 11:03:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit 449adb2959642f8a10729a0cbf6eedf0cc4441b2
Author: Guillem Jover <guillem at debian.org>
Date: Wed Feb 22 22:49:18 2017 +0100
build: Add new gcc-7 warnings
---
debian/changelog | 2 ++
m4/dpkg-compiler.m4 | 2 ++
2 files changed, 4 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index a1507a3..c988db6 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 at debian.org> Thu, 18 May 2017 05:27:31 +0200
diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4
index ad11c19..8acd399 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])
--
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