diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs index 32e07b0a530..ed456f82dd8 100644 --- a/libs/libxx/libcxx.defs +++ b/libs/libxx/libcxx.defs @@ -139,9 +139,11 @@ endif # warning on gcc >= 12.3.Rel1 # libcxx/src/string.cpp:58:33: warning: 'template struct std::__1::char_traits' is deprecated: char_traits for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a temporary period. It will be removed in LLVM 18, so please migrate off of it. [-Wdeprecated-declarations] # 58 | template string operator+, allocator>(char const*, string const&); +ifneq ($(GCCVER),) ifeq ($(shell expr $(GCCVER) \>= 12), 1) libcxx/src/string.cpp_CXXFLAGS += -Wno-deprecated-declarations endif +endif # warning on gcc >= 12.3.Rel1 # libcxx/src/filesystem/path.cpp:14: @@ -166,17 +168,21 @@ endif # libcxx/src/filesystem/path_parser.h:55:15: note: shadowed declaration is here # 55 | ParserState State; # | ^~~~~ +ifneq ($(GCCVER),) ifeq ($(shell expr $(GCCVER) \>= 12), 1) libcxx/src/filesystem/path.cpp_CXXFLAGS += -Wno-shadow endif +endif # warning on gcc >= 12.3.Rel1 # libcxx/src/ryu/d2s.cpp:490:31: warning: '_Trailing_zero_bits' may be used uninitialized [-Wmaybe-uninitialized] # 490 | _Trailing_zero_bits += 32; # | ~~~~~~~~~~~~~~~~~~~~^~~~~ +ifneq ($(GCCVER),) ifeq ($(shell expr $(GCCVER) \>= 12), 1) libcxx/src/ryu/d2s.cpp_CXXFLAGS += -Wno-maybe-uninitialized endif +endif CPPSRCS += $(wildcard libcxx/src/*.cpp)