if supported, add -Wformat-security and -Wformat-non-literal to the

2008-12-23  Sven Neumann  <sven@gimp.org>

	* configure.in: if supported, add -Wformat-security and
	-Wformat-non-literal to the compiler flags.


svn path=/trunk/; revision=27826
This commit is contained in:
Sven Neumann 2008-12-23 12:24:44 +00:00 committed by Sven Neumann
parent a7798936f0
commit c7dfb8bd55
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-12-23 Sven Neumann <sven@gimp.org>
* configure.in: if supported, add -Wformat-security and
-Wformat-non-literal to the compiler flags.
2008-12-23 Sven Neumann <sven@gimp.org>
* app/batch.c

View File

@ -345,6 +345,12 @@ CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wmissing-format-attribute')
CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wformat-security')
CFLAGS="$CFLAGS $extra_warnings"
GIMP_DETECT_CFLAGS(extra_warnings, '-Wformat-non-literal')
CFLAGS="$CFLAGS $extra_warnings"
# Ensure MSVC-compatible struct packing convention is used when
# compiling for Win32 with gcc.