summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Royds <douglas.royds@taitradio.com>2021-10-15 13:13:40 +1300
committerRichard Leitner <richard.leitner@skidata.com>2021-11-17 17:44:26 +0100
commit59ab2699d4f1300ae92e4c2c92642e57f849db87 (patch)
tree5f1d0130f268289d9060add8f975200c74427364
parente9707f01cf0c621a35242229122104b7e1ce9843 (diff)
downloadmeta-java-59ab2699d4f1300ae92e4c2c92642e57f849db87.tar.gz
icedtea7-native: -Wno-error=format-overflow for all gcc >= 9
Using oe.utils.less_or_equal() in the reverse sense here, such that we *don't* add the warning exclusion for gcc <= 8. Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r--recipes-core/icedtea/icedtea7-native.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 331b7a4..0f317bb 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -30,8 +30,7 @@ CFLAGS:append = " -Wno-error=stringop-overflow -Wno-error=return-type"
30 30
31# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9" 31# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9"
32HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}" 32HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}"
33# if compiler version 9 detected, add more CFLAGS 33CFLAGS:append = " ${@oe.utils.less_or_equal('HOST_COMPILER_MAJOR', '8', '', ' -Wno-error=format-overflow', d)}"
34CFLAGS:append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}"
35 34
36# Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources 35# Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources
37CFLAGS:append = " -fcommon" 36CFLAGS:append = " -fcommon"