From dac15b2eaa51be418206c58ed8bb808a55bcecdd Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 17 Jun 2012 21:56:06 +0000 Subject: [PATCH] Add -Werror=format-security to build --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 139ad8e8a..9fad4306b 100644 --- a/SConstruct +++ b/SConstruct @@ -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])