From c939359a0271bcdaf56e702a20cfd8bb037808aa Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 24 Aug 2022 16:07:04 -0700 Subject: [PATCH] dhrystone: Disable warnings as errors with clang The sourcecode predate C99 and newer compiler are becoming string about language syntax and standards compliance,so this starts to fail builds due to additional warnings which are being promoted to errors. The objective of this package is measuring performance so we can ignore compiler warnings as errors Signed-off-by: Khem Raj --- meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb b/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb index 17e8c700ca..d809a564e9 100644 --- a/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb +++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb @@ -22,5 +22,6 @@ do_install() { # Prevent procedure merging as required by dhrystone.c: CFLAGS += "-fno-lto" +CFLAGS:append:toolchain-clang = " -Wno-error=implicit-function-declaration -Wno-error=deprecated-non-prototype -Wno-error=implicit-int" LDFLAGS += "-fno-lto"