Add -Werror=format-security to build
This commit is contained in:
parent
400b18b78a
commit
dac15b2eaa
|
@ -474,7 +474,7 @@ class DXXCommon(LazyObjectConstructor):
|
|||
# -Werror=undef to make this fatal. Both are needed, since
|
||||
# gcc 4.5 silently ignores -Werror=undef. On gcc 4.5, misuse
|
||||
# produces a warning. On gcc 4.7, misuse produces an error.
|
||||
self.env.Append(CCFLAGS = ['-Wall', '-Wundef', '-Werror=undef', '-funsigned-char', '-Werror=implicit-int', '-Werror=implicit-function-declaration', '-pthread'])
|
||||
self.env.Append(CCFLAGS = ['-Wall', '-Wundef', '-Werror=undef', '-funsigned-char', '-Werror=implicit-int', '-Werror=implicit-function-declaration', '-Werror=format-security', '-pthread'])
|
||||
self.env.Append(CFLAGS = ['-std=gnu99'])
|
||||
self.env.Append(CPPDEFINES = ['NETWORK'])
|
||||
self.env.Append(CPPPATH = ['common/include', 'common/main', '.', self.user_settings.builddir])
|
||||
|
|
Loading…
Reference in a new issue