This is an automated email from the ASF dual-hosted git repository.

gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit a261439b8b0274bc966693f7b2d5f8e40ac9f63b
Author: Petro Karashchenko <petro.karashche...@gmail.com>
AuthorDate: Mon Mar 20 16:25:17 2023 +0200

    libs/libx: relax compiler check for workaround with "GCC 12.2"
    
    Signed-off-by: Petro Karashchenko <petro.karashche...@gmail.com>
---
 libs/libxx/libcxx.defs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs
index f79c294cf0..f4312d9588 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
 

Reply via email to