diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs index f79c294cf0e..f4312d95888 100644 --- a/libs/libxx/libcxx.defs +++ b/libs/libxx/libcxx.defs @@ -84,8 +84,8 @@ libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-shadow # 2676 | const basic_string __temp (__first, __last, __alloc()); # | ^~~~~~ -GCCVER = $(shell $(CXX) --version | grep g++ | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/') -ifeq ($(GCCVER),12.2.1) +GCCVER = $(shell $(CXX) --version | grep g++ | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/') +ifeq ($(GCCVER),12.2) libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized endif