diff --git a/libs/libxx/libcxx.cmake b/libs/libxx/libcxx.cmake index e504e7535c..1d7e79e4be 100644 --- a/libs/libxx/libcxx.cmake +++ b/libs/libxx/libcxx.cmake @@ -106,7 +106,7 @@ if(NOT CONFIG_CXX_LOCALIZATION) endif() set(FLAGS -Wno-attributes -Wno-deprecated-declarations -Wno-shadow - -Wno-sign-compare) + -Wno-sign-compare -Wno-cpp) if(GCCVER GREATER_EQUAL 12) list(APPEND FLAGS -Wno-maybe-uninitialized -Wno-alloc-size-larger-than) diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs index 7f39b00a6f..730b898b23 100644 --- a/libs/libxx/libcxx.defs +++ b/libs/libxx/libcxx.defs @@ -58,7 +58,7 @@ ifeq ($(CONFIG_LIBSUPCXX), y) CXXFLAGS += ${DEFINE_PREFIX}__GLIBCXX__ endif -CXXFLAGS += -Wno-shadow -Wno-sign-compare +CXXFLAGS += -Wno-shadow -Wno-sign-compare -Wno-cpp CXXFLAGS += -Wno-attributes -Wno-deprecated-declarations ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)