commit: 40673d0184a695c5f92fd6b8d241db9697b234f4 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Nov 9 02:22:52 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 9 02:25:45 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=40673d01
install-qa-check.d/90gcc-warnings: add -Wincompatible-function-pointer-types Clang 16 makes this fatal, but we're just going to warn on it here. We already have -Wincompatible-pointer-types anyway. Signed-off-by: Sam James <sam <AT> gentoo.org> bin/install-qa-check.d/90gcc-warnings | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/install-qa-check.d/90gcc-warnings b/bin/install-qa-check.d/90gcc-warnings index d8bde18cb..403c19684 100644 --- a/bin/install-qa-check.d/90gcc-warnings +++ b/bin/install-qa-check.d/90gcc-warnings @@ -82,6 +82,8 @@ gcc_warn_check() { 'warning: .*\[-Waggressive-loop-optimizations\]' # conversion between pointers that have incompatible types 'warning: .*\[-Wincompatible-pointer-types\]' + # more specific form of -Wincompatible-pointer-types (Clang) + 'warning: .*\[-Wincompatible-function-pointer-types\]' # using wrong deallocator, e.g. using free() on object allocated using my_malloc() # when my_malloc() is annotated as needing my_free(). 'warning: .*\[-Wmismatched-dealloc\]'