expect-native: fix do_compile failure with gcc-14

In native.bbclass, CFLAGS is overrided by 'CFLAGS = "${BUILD_CFLAGS}"',
this make "CFLAGS +=" not work for expect-native, use append to make it
also work for native.

(From OE-Core rev: 6974c6548cae62529d96d4ceb3a296707d4adae5)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Changqing Li 2024-08-27 14:15:11 +08:00 committed by Steve Sakoman
parent d72fe250e4
commit 8bfdb53247

View File

@ -85,4 +85,4 @@ BBCLASSEXTEND = "native nativesdk"
# http://errors.yoctoproject.org/Errors/Details/766950/
# expect5.45.4/exp_chan.c:62:5: error: initialization of 'struct Tcl_ChannelTypeVersion_ *' from incompatible pointer type 'int (*)(void *, int)' [-Wincompatible-pointer-types]
CFLAGS += "-Wno-error=incompatible-pointer-types"
CFLAGS:append = " -Wno-error=incompatible-pointer-types"