commit:     eaf2868e99280cb6c57df528f63f98c6b4757ef6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 27 23:37:43 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 27 23:37:43 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=eaf2868e

install-qa-check.d/90gcc-warnings: add -Wbuiltin-declaration-mismatch

Closely related to -Wimplicit-function-declaration. It's a mistake
to do this anyway, but it's particularly bad if it then inhibits
further compiler diagnostics.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/install-qa-check.d/90gcc-warnings | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/install-qa-check.d/90gcc-warnings 
b/bin/install-qa-check.d/90gcc-warnings
index 7a506d357..256e6918b 100644
--- a/bin/install-qa-check.d/90gcc-warnings
+++ b/bin/install-qa-check.d/90gcc-warnings
@@ -24,6 +24,7 @@ gcc_warn_check() {
                        # with -Wall, goes in pair with 
-Wimplicit-function-declaration
                        # but without -Wall, we need to assert for it alone
                        'warning: .*incompatible implicit declaration of 
built-in function'
+                       'warning: .*\[-Wbuiltin-declaration-mismatch\]'
                        # 'is used uninitialized in this function' and some more
                        'warning: .*\[-Wuninitialized\]'
                        # comparisons like ‘X<=Y<=Z’ do not have their 
mathematical meaning

Reply via email to