From 83b76242cb67719333611ecc9ed63c7d67fd5a23 Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Mon, 27 Dec 2021 19:26:17 +0100 Subject: [PATCH] Fixes gcc-11 compatibility issue. (#594) Due to a source code problem in the GTEST package that we depend on we have to disable a warning when compiling a given source file with g++-11. * Fixes gcc-11 compatibility issue. --- etc/core_test.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/core_test.mk b/etc/core_test.mk index f373c3b5c..1485137eb 100644 --- a/etc/core_test.mk +++ b/etc/core_test.mk @@ -53,7 +53,7 @@ $(TESTOBJS): %.test.o : $(SRCDIR)/%.cxxtest $(CXX) $(CXXFLAGS) -MD -MF $*.dtest -x c++ $< -o $@ gtest-all.o : %.o : $(GTESTSRCPATH)/src/%.cc - $(CXX) $(CXXFLAGS) -I$(GTESTPATH) -I$(GTESTSRCPATH) -MD -MF $*.d $< -o $@ + $(CXX) $(CXXFLAGS) -Wno-uninitialized -I$(GTESTPATH) -I$(GTESTSRCPATH) -MD -MF $*.d $< -o $@ gmock-all.o : %.o : $(GMOCKSRCPATH)/src/%.cc $(CXX) $(CXXFLAGS) -I$(GMOCKPATH) -I$(GMOCKSRCPATH) -MD -MF $*.d $< -o $@