summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormark.yang <mark.yang@lge.com>2025-04-01 19:08:32 +0900
committerKhem Raj <raj.khem@gmail.com>2025-04-01 09:21:23 -0700
commite2c8a25c1b45823bb200d7c6e92fc83e80958547 (patch)
tree840d70a6895411baf9e2129cd7b62b97382c805b
parent713d35adce471eae666e5bd0b67bea9aa47aca25 (diff)
downloadmeta-openembedded-e2c8a25c1b45823bb200d7c6e92fc83e80958547.tar.gz
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 <mark.yang@lge.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/mcpp/mcpp_2.7.2.bb4
1 files changed, 4 insertions, 0 deletions
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"
21# http://errors.yoctoproject.org/Errors/Details/766883/ 21# http://errors.yoctoproject.org/Errors/Details/766883/
22# mcpp-2.7.2/src/expand.c:713:21: error: assignment to 'char *' from incompatible pointer type 'LOCATION *' {aka 'struct location *'} [-Wincompatible-pointer-types] 22# mcpp-2.7.2/src/expand.c:713:21: error: assignment to 'char *' from incompatible pointer type 'LOCATION *' {aka 'struct location *'} [-Wincompatible-pointer-types]
23CFLAGS += "-Wno-error=incompatible-pointer-types" 23CFLAGS += "-Wno-error=incompatible-pointer-types"
24
25# http://errors.yoctoproject.org/Errors/Details/850149/
26# ../../mcpp-2.7.2/src/system.c:3436:15: error: expected identifier or '*' before 'true'
27CFLAGS += "-std=gnu17"