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 <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-08-24 16:07:04 -07:00
parent a54a6b3823
commit c939359a02

View File

@ -22,5 +22,6 @@ do_install() {
# Prevent procedure merging as required by dhrystone.c: # Prevent procedure merging as required by dhrystone.c:
CFLAGS += "-fno-lto" CFLAGS += "-fno-lto"
CFLAGS:append:toolchain-clang = " -Wno-error=implicit-function-declaration -Wno-error=deprecated-non-prototype -Wno-error=implicit-int"
LDFLAGS += "-fno-lto" LDFLAGS += "-fno-lto"