Hi all,

This patch adds -Wformat-security to the build CFLAGS.  This appears to
be enabled by default with Ubuntu 8.10, beyond the standard -Wformat.
It would be nice to get to -Wformat=2, but that will take more work.

Cheers,

Zach

Index: configure.in
===================================================================
--- configure.in	(revision 1478)
+++ configure.in	(working copy)
@@ -692,7 +692,7 @@
 AC_PROG_RANLIB
 
 # set default gcc warnings
-GCC_WARNINGS="-Wall -Wstrict-prototypes"
+GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"
 if test "${gcc_wextra}" = yes; then
 	GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
 fi
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to