This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
commit b268b7096a970ced824d0ab0dc62b6f0e770230c Author: Guillem Jover <[email protected]> Date: Sun Mar 25 05:16:32 2018 +0200 build: Automatically replace -Wno- with -W when testing compiler flags This is less error prone, less repetitive and the correct thing to do ayway. Instead of manually passing the positive form for these flags. --- debian/changelog | 2 ++ m4/dpkg-compiler.m4 | 10 ++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 82748f6..b040598 100644 --- a/debian/changelog +++ b/debian/changelog @@ -70,6 +70,8 @@ dpkg (1.19.1) UNRELEASED; urgency=medium * Build system: - Set distribution tarball format to ustar, instead of default v7 format. - Mark PO4A and POD2MAN as precious variables. + - Automatically replace -Wno- with -W when testing compiler flags, + instead of passing the positive form manually. * Packaging: - Install update-alternatives policykit-1 file. - Add Breaks to libdpkg-perl against pkg-kde-tools (<< 0.15.28~), as diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4 index 8acd399..0264e82 100644 --- a/m4/dpkg-compiler.m4 +++ b/m4/dpkg-compiler.m4 @@ -4,7 +4,7 @@ # DPKG_CHECK_COMPILER_FLAG # ------------------------ AC_DEFUN([DPKG_CHECK_COMPILER_FLAG], [ - m4_define([dpkg_check_flag], [m4_default([$2], [$1])]) + m4_define([dpkg_check_flag], m4_bpatsubst([$1], [^-Wno-], [-W])) AC_LANG_CASE( [C], [ @@ -45,11 +45,9 @@ AC_DEFUN([DPKG_CHECK_COMPILER_FLAG], [ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [ DPKG_CHECK_COMPILER_FLAG([-Wall]) DPKG_CHECK_COMPILER_FLAG([-Wextra]) - DPKG_CHECK_COMPILER_FLAG([-Wno-unused-parameter], [-Wunused-parameter]) - DPKG_CHECK_COMPILER_FLAG([-Wno-missing-field-initializers], - [-Wmissing-field-initializers]) - DPKG_CHECK_COMPILER_FLAG([-Wno-tautological-constant-out-of-range-compare], - [-Wtautological-constant-out-of-range-compare]) + 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]) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/dpkg/dpkg.git

