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.
This commit is contained in:
parent
700245b5bf
commit
a195f47bdf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user