From e2c8a25c1b45823bb200d7c6e92fc83e80958547 Mon Sep 17 00:00:00 2001 From: "mark.yang" Date: Tue, 1 Apr 2025 19:08:32 +0900 Subject: [PATCH] mcpp: Stick to C17 * Fix build error with gcc-15 by renaming goto labels see more details: http://errors.yoctoproject.org/Errors/Details/850149/ ../../mcpp-2.7.2/src/system.c:3436:15: error: expected identifier or '*' before 'true' true, false are reserved keywords in gcc-15 Rename goto 'labels' from 'ture' to 'true_label', from 'false' 'false_label' to avoid conflicts. Signed-off-by: mark.yang Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb b/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb index 0c1815732f..dfa77770a7 100644 --- a/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb +++ b/meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb @@ -21,3 +21,7 @@ BBCLASSEXTEND = "native nativesdk" # http://errors.yoctoproject.org/Errors/Details/766883/ # mcpp-2.7.2/src/expand.c:713:21: error: assignment to 'char *' from incompatible pointer type 'LOCATION *' {aka 'struct location *'} [-Wincompatible-pointer-types] CFLAGS += "-Wno-error=incompatible-pointer-types" + +# http://errors.yoctoproject.org/Errors/Details/850149/ +# ../../mcpp-2.7.2/src/system.c:3436:15: error: expected identifier or '*' before 'true' +CFLAGS += "-std=gnu17"