This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=3533e05c2038cb47e5446c0ba8de02dc8ce3f275 The following commit(s) were added to refs/heads/main by this push: new 3533e05c2 Dpkg::Vendor::Debian: Set -Wno-error on qa=-bug-implicit-func 3533e05c2 is described below commit 3533e05c2038cb47e5446c0ba8de02dc8ce3f275 (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Fri Jul 5 00:29:03 2024 +0200 Dpkg::Vendor::Debian: Set -Wno-error on qa=-bug-implicit-func Starting with gcc 14, the -Werror=implicit-function-declaration is enabled by default by the compiler, so disabling the feature flag (which would imply not passing any flag) will have no effect. Explicitly set -Wno-error=implicit-function-declaration if the feature has been disabled. Closes: #1075769 --- scripts/Dpkg/Vendor/Debian.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index 4a4af3f6b..8d6983485 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -477,6 +477,8 @@ sub add_build_flags { # Warnings that detect actual bugs. if ($flags->use_feature('qa', 'bug-implicit-func')) { $flags->append('CFLAGS', '-Werror=implicit-function-declaration'); + } else { + $flags->append('CFLAGS', '-Wno-error=implicit-function-declaration'); } if ($flags->use_feature('qa', 'bug')) { # C/C++ flags -- Dpkg.Org's dpkg

