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>
This commit is contained in:
mark.yang 2025-04-01 19:08:32 +09:00 committed by Khem Raj
parent 713d35adce
commit e2c8a25c1b
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"