commit:     50f429f0e0d8d81577b24c04061b5af01d350f9d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 18 16:35:28 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 22 22:18:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50f429f0

flag-o-matic.eclass: allow -fno-diagnostics-color -fmessage-length=0

Both of these options are useful for automated reports and should
be harmless.

Closes: https://bugs.gentoo.org/830534
Reported-by: Agostino Sarubbo <ago <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/flag-o-matic.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index f8181a17e911..38ad14d8f5fe 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -62,6 +62,8 @@ _setup-allowed-flags() {
                -gstabs -gstabs+
                -gz
 
+               # Cosmetic/output related, see e.g. bug #830534
+               -fno-diagnostics-color '-fmessage-length=*'
                -fno-ident -fpermissive -frecord-gcc-switches
                '-fdiagnostics*' '-fplugin*'
                '-W*' -w

Reply via email to