From 59ab2699d4f1300ae92e4c2c92642e57f849db87 Mon Sep 17 00:00:00 2001 From: Douglas Royds Date: Fri, 15 Oct 2021 13:13:40 +1300 Subject: 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 Signed-off-by: Richard Leitner --- recipes-core/icedtea/icedtea7-native.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'recipes-core/icedtea/icedtea7-native.inc') 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" # oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9" HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}" -# if compiler version 9 detected, add more CFLAGS -CFLAGS:append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}" +CFLAGS:append = " ${@oe.utils.less_or_equal('HOST_COMPILER_MAJOR', '8', '', ' -Wno-error=format-overflow', d)}" # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources CFLAGS:append = " -fcommon" -- cgit v1.2.3-54-g00ecf