From a195f47bdff5001de7879e68b8cb508b73ed7af1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 18 May 2012 17:53:23 +1000 Subject: [PATCH] Add -fno-deduce-init-list for template constructor When using variadic template constructors which forward their arguments to base classes we tend to get a lot of warnings about auto deduction of initializer_list types from aggregate initialiser syntax. As this is apparently expected to be removed from the standard we'll hide the warnings this way. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15a7ae2e..d66024c7 100644 --- a/configure.ac +++ b/configure.ac @@ -198,7 +198,7 @@ fi ## Output -COMMON_CXXFLAGS="-std=c++0x -pipe -include config.h $WARNING_FLAGS $OPTIMISATION_FLAGS $COMMON_CFLAGS" +COMMON_CXXFLAGS="-std=c++0x -fno-deduce-init-list -pipe -include config.h $WARNING_FLAGS $OPTIMISATION_FLAGS $COMMON_CFLAGS" COMMON_LDFLAGS="$COMMON_LDFLAGS " AC_SUBST(COMMON_CXXFLAGS)