Enable -Wvla

This commit is contained in:
Kp 2015-05-17 00:59:26 +00:00
parent 44625e2617
commit 3caea6d618

View file

@ -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'))