commit:     aa5f84544096f3ffa5fad307768537ca34e8193e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 10 19:42:00 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 19:18:36 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=aa5f8454

install-qa-check.d/90gcc-warnings: add more LTO warnings (-Wodr, 
-Wlto-type-mismatch)

Bug: https://bugs.gentoo.org/618550
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/bin/install-qa-check.d/90gcc-warnings 
b/bin/install-qa-check.d/90gcc-warnings
index d118ce958..6014f6be9 100644
--- a/bin/install-qa-check.d/90gcc-warnings
+++ b/bin/install-qa-check.d/90gcc-warnings
@@ -63,6 +63,10 @@ gcc_warn_check() {
                        # clobbered: Warn for variables that might be changed 
by longjmp or vfork
                        # (This warning is also enabled by -Wextra.)
                        'warning: .*\[-Wclobbered\]'
+                       # LTO type mismatch 
(https://wiki.gentoo.org/wiki/Project:Toolchain/LTO)
+                       'warning: .*\[-Wlto-type-mismatch\]'
+                       # ODR 
(https://wiki.gentoo.org/wiki/Project:Toolchain/LTO)
+                       'warning: .*\[-Wodr\]'
 
                        # this may be valid code :/
                        #': warning: multi-character character constant'

Reply via email to