This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b81acba9f358d63b38ad76508bc4baaa4786d935 commit b81acba9f358d63b38ad76508bc4baaa4786d935 Author: Guillem Jover <[email protected]> AuthorDate: Fri Feb 7 03:05:12 2020 +0100 build: Enable more compiler warnings --- debian/changelog | 1 + m4/dpkg-compiler.m4 | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3241f6a57..ec710d4fb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -207,6 +207,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium - Install m4 files into system aclocal directory. - Bump minimal gettext version to 0.19.8, to get the m4 files that can cross-build for musl-based systems. + - Enable more compiler warnings. * Packaging: - Remove obsolete Breaks satisfied since oldstable. - Replace custom rule for 'configure' with call to dh_autoreconf. diff --git a/m4/dpkg-compiler.m4 b/m4/dpkg-compiler.m4 index 9799f6fea..7872951c5 100644 --- a/m4/dpkg-compiler.m4 +++ b/m4/dpkg-compiler.m4 @@ -49,8 +49,10 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [ DPKG_CHECK_COMPILER_FLAG([-Wcast-align]) DPKG_CHECK_COMPILER_FLAG([-Wdocumentation]) + DPKG_CHECK_COMPILER_FLAG([-Wduplicated-branches]) DPKG_CHECK_COMPILER_FLAG([-Wduplicated-cond]) DPKG_CHECK_COMPILER_FLAG([-Wformat -Wformat-security]) + DPKG_CHECK_COMPILER_FLAG([-Wformat=2]) DPKG_CHECK_COMPILER_FLAG([-Winit-self]) DPKG_CHECK_COMPILER_FLAG([-Wlogical-not-parentheses]) DPKG_CHECK_COMPILER_FLAG([-Wlogical-op]) @@ -62,8 +64,9 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [ DPKG_CHECK_COMPILER_FLAG([-Wno-unused-parameter]) DPKG_CHECK_COMPILER_FLAG([-Wnull-dereference]) DPKG_CHECK_COMPILER_FLAG([-Wpointer-arith]) - DPKG_CHECK_COMPILER_FLAG([-Wrestrict]) + DPKG_CHECK_COMPILER_FLAG([-Wredundant-decls]) DPKG_CHECK_COMPILER_FLAG([-Wregister]) + DPKG_CHECK_COMPILER_FLAG([-Wrestrict]) DPKG_CHECK_COMPILER_FLAG([-Wshadow]) DPKG_CHECK_COMPILER_FLAG([-Wshift-negative-value]) DPKG_CHECK_COMPILER_FLAG([-Wsizeof-array-argument]) @@ -83,6 +86,8 @@ AC_DEFUN([DPKG_CHECK_COMPILER_WARNINGS], [ ], [C++], [ DPKG_CHECK_COMPILER_FLAG([-Wc++11-compat]) + DPKG_CHECK_COMPILER_FLAG([-Wcast-qual]) + DPKG_CHECK_COMPILER_FLAG([-Wold-style-cast]) AS_IF([test "x$dpkg_cv_cxx11" = "xyes"], [ DPKG_CHECK_COMPILER_FLAG([-Wzero-as-null-pointer-constant]) ]) -- Dpkg.Org's dpkg

