diff --git a/SConstruct b/SConstruct index 119764f84..273c0e258 100644 --- a/SConstruct +++ b/SConstruct @@ -1594,7 +1594,7 @@ class DXXCommon(LazyObjectConstructor): # gcc 4.5 silently ignores -Werror=undef. On gcc 4.5, misuse # produces a warning. On gcc 4.7, misuse produces an error. Werror = get_Werror_string(self.user_settings.CXXFLAGS) - self.env.Prepend(CXXFLAGS = ['-Wall', Werror + 'extra', Werror + 'missing-declarations', Werror + 'pointer-arith', Werror + 'undef', Werror + 'missing-braces', Werror + 'unused', Werror + 'format-security', Werror + 'redundant-decls']) + self.env.Prepend(CXXFLAGS = ['-Wall', Werror + 'extra', Werror + 'missing-declarations', Werror + 'pointer-arith', Werror + 'undef', Werror + 'missing-braces', Werror + 'unused', Werror + 'format-security', Werror + 'redundant-decls', Werror + 'vla']) self.env.Append(CXXFLAGS = ['-funsigned-char']) self.env.Append(CPPPATH = ['common/include', 'common/main', '.', self.user_settings.builddir]) self.env.Append(CPPFLAGS = SCons.Util.CLVar('-Wno-sign-compare'))