chiark / gitweb /
Disable -Wformat-security for t-printf, which deliberately uses some
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 31 Jan 2009 12:55:37 +0000 (12:55 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 31 Jan 2009 12:55:37 +0000 (12:55 +0000)
dubious format strings.  -Wformat-security goes back at least to GCC
3.0 so it's probably a safe bet to disable without a test.

http://code.google.com/p/disorder/issues/detail?id=24

libtests/Makefile.am

index e3a861e4aa0a1975913a1c5c0352970e99dbc1c2..2f81f20bbb02ccf247850566c2e6ed01471da897 100644 (file)
@@ -46,6 +46,7 @@ t_kvp_SOURCES=t-kvp.c test.c test.h
 t_macros_SOURCES=t-macros.c test.c test.h
 t_mime_SOURCES=t-mime.c test.c test.h
 t_printf_SOURCES=t-printf.c test.c test.h
+t_printf_CFLAGS=$(AM_CFLAGS) -Wno-format-security
 t_regsub_SOURCES=t-regsub.c test.c test.h
 t_selection_SOURCES=t-selection.c test.c test.h
 t_signame_SOURCES=t-signame.c test.c test.h