summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-07 10:19:29 +0100
committerSam James <sam@gentoo.org>2024-08-07 10:20:24 +0100
commit7eab20a224f411ef2660f4fecae22e28cad711e7 (patch)
tree9b55e2c63db4119552c1346043fc7194a9027d5f /eclass
parentapp-editors/sublime-text: add 4_p4180 (diff)
downloadgentoo-7eab20a224f411ef2660f4fecae22e28cad711e7.tar.gz
gentoo-7eab20a224f411ef2660f4fecae22e28cad711e7.tar.bz2
gentoo-7eab20a224f411ef2660f4fecae22e28cad711e7.zip
toolchain.eclass: try harder to suppress -Wformat and friends
* Followup to f66787897a590b8c949d257e3a9107f8995f62ae * See https://inbox.sourceware.org/gcc-patches/87v80cn24t.fsf@gentoo.org/ Still not quite right though per link above. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 9304800f09f7..591ca98d7467 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1947,8 +1947,11 @@ toolchain_src_test() {
# Go doesn't support this and causes noisy warnings
filter-flags -Wbuiltin-declaration-mismatch
+ local suppress_warn="/-Wno-format/-Wno-format-security/-Wno-trampolines"
+ RUNTESTFLAGS+=" --target_board=unix\{${suppress_warn}"
# TODO: Does this handle s390 (-m31) correctly?
- is_multilib && GCC_TESTS_RUNTESTFLAGS+=" --target_board=unix\{,-m32\}"
+ is_multilib && GCC_TESTS_RUNTESTFLAGS+=" ,-m32/${suppress_warn}"
+ RUNTESTFLAGS+="\}"
# nonfatal here as we die if the comparison below fails. Also, note that
# the exit code of targets other than 'check' may be unreliable.