All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH] icedtea7-native: -Wno-error=format-overflow for all gcc >= 9
@ 2021-10-15  0:13 Douglas Royds
  2021-10-15  0:13 ` [meta-java][PATCH] openjdk-build-helper: Use python raw string for regex pattern Douglas Royds
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas Royds @ 2021-10-15  0:13 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Douglas Royds

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>
---
 recipes-core/icedtea/icedtea7-native.inc | 3 +--
 1 file changed, 1 insertion(+), 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"
 
 # 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"
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-15  0:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15  0:13 [meta-java][PATCH] icedtea7-native: -Wno-error=format-overflow for all gcc >= 9 Douglas Royds
2021-10-15  0:13 ` [meta-java][PATCH] openjdk-build-helper: Use python raw string for regex pattern Douglas Royds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.