summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-01-18 19:05:05 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-01-18 19:05:05 +0100
commit1d65c66628fff66893dc3c59be55a6a9f6633514 (patch)
tree32e2b993807e2407c03797cc314c0f508d20f437
parent7c33bf113dbee31e0f2610df94f7c17174191942 (diff)
downloadATCD-1d65c66628fff66893dc3c59be55a6a9f6633514.tar.gz
g++ 4.8 has a problem that it warns when using a std::array containing std::string even when {{}} is used, disable this warning only for gcc 4.8
* ACE/include/makeinclude/platform_g++_common.GNU:
-rw-r--r--ACE/include/makeinclude/platform_g++_common.GNU6
1 files changed, 6 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_g++_common.GNU b/ACE/include/makeinclude/platform_g++_common.GNU
index 3401d2f35c6..d01bf7a49b7 100644
--- a/ACE/include/makeinclude/platform_g++_common.GNU
+++ b/ACE/include/makeinclude/platform_g++_common.GNU
@@ -79,6 +79,12 @@ endif
# gcc 4 has C++03 as default C++ version, enable this to be C++11
ifeq ($(findstring $(CXX_MAJOR_VERSION),4),$(CXX_MAJOR_VERSION))
c++11 ?= 1
+ # gcc 4.8 has a problem that it warnings about missing initializers
+ # for an std::array containing std::string even when {{}} is used
+ # as it should
+ ifeq ($(findstring $(CXX_MINOR_VERSION),8),$(CXX_MINOR_VERSION))
+ FLAGS_C_CC += -Wno-missing-field-initializers
+ endif
endif
CXX_FULL_VERSION := $(shell $(CXX_FOR_VERSION_TEST) --version)