diff mbox series

[master/scarthgap,1/2] cpuloadgen: force older GNU/C standard

Message ID 20250506200058.1227765-1-denis@denix.org
State New
Headers show
Series [master/scarthgap,1/2] cpuloadgen: force older GNU/C standard | expand

Commit Message

Denys Dmytriyenko May 6, 2025, 8 p.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

This is an old code base based on Dhrystone and hasn't been updated in
a very long time. It now fails to compile with gcc-15 (C23 standard).
Force compilation with GNU/C11 standard instead.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb b/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb
index 751f91c0..12d0905d 100644
--- a/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb
+++ b/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb
@@ -15,7 +15,7 @@  SRC_URI = "git://github.com/ptitiano/cpuloadgen.git;protocol=https;branch=${BRAN
 S = "${WORKDIR}/git"
 
 EXTRA_OEMAKE = "DESTDIR=${D}${bindir} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" CFLAGS="${CFLAGS}""
-CFLAGS += "-fpermissive"
+CFLAGS += "-fpermissive -std=gnu11"
 
 do_install () {
     install -d ${D}${bindir}