Browse code

add -Wformat-security to 'make distcheck'

git-svn: trunk@4586

Török Edvin authored on 2009/01/02 05:42:31
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Thu Jan  1 22:56:40 EET 2009 (edwin)
2
+------------------------------------
3
+ * Makefile.am, Makefile.in: add -Wformat-security to 'make
4
+ distcheck'
5
+
1 6
 Thu Jan  1 21:17:47 CET 2009 (acab)
2 7
 -----------------------------------
3 8
  * libclamav/disasm.c: table fixup
... ...
@@ -30,7 +30,7 @@ pkgconfig_DATA = libclamav.pc
30 30
 distuninstallcheck_listfiles = find . -type f ! -name clamd.conf ! -name freshclam.conf ! -name daily.cvd ! -name main.cvd -print
31 31
 DISTCLEANFILES = target.h
32 32
 if DISTCHECK_ENABLE_FLAGS 
33
-DISTCHECK_CONFIGURE_FLAGS=--enable-milter --disable-clamav CFLAGS="-Wno-pointer-sign -Werror-implicit-function-declaration -Werror -Wextra -Wall -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wwrite-strings -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return"
33
+DISTCHECK_CONFIGURE_FLAGS=--enable-milter --disable-clamav CFLAGS="-Wno-pointer-sign -Werror-implicit-function-declaration -Werror -Wextra -Wall -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith -Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef -Wwrite-strings -Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute -Wno-error=missing-format-attribute -Wno-error=type-limits -Wno-error=unused-value -Wno-error=unused-variable -Wcast-qual -Wno-error=cast-qual -Wno-error=sign-compare -Wshadow -Wno-error=shadow -Wno-error=uninitialized -fdiagnostics-show-option -Wno-unused-parameter -Wno-error=unreachable-code -Winvalid-pch -Wno-error=invalid-pch -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -Wno-error=aggregate-return"
34 34
 else
35 35
 DISTCHECK_CONFIGURE_FLAGS=--enable-milter --disable-clamav
36 36
 endif
... ...
@@ -298,7 +298,8 @@ DISTCLEANFILES = target.h
298 298
 @DISTCHECK_ENABLE_FLAGS_TRUE@	-Werror -Wextra -Wall \
299 299
 @DISTCHECK_ENABLE_FLAGS_TRUE@	-Wbad-function-cast -Wcast-align \
300 300
 @DISTCHECK_ENABLE_FLAGS_TRUE@	-Wendif-labels -Wfloat-equal \
301
-@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wformat=2 -Wmissing-declarations \
301
+@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wformat=2 -Wformat-security \
302
+@DISTCHECK_ENABLE_FLAGS_TRUE@	-Wmissing-declarations \
302 303
 @DISTCHECK_ENABLE_FLAGS_TRUE@	-Wmissing-prototypes \
303 304
 @DISTCHECK_ENABLE_FLAGS_TRUE@	-Wno-error=missing-prototypes \
304 305
 @DISTCHECK_ENABLE_FLAGS_TRUE@	-Wnested-externs \