]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Makefile: add -Wformat-security
authorSage Weil <sage@inktank.com>
Mon, 20 May 2013 16:09:25 +0000 (09:09 -0700)
committerSage Weil <sage@inktank.com>
Mon, 20 May 2013 19:35:13 +0000 (12:35 -0700)
Clean up the formatting a bit here too.

Signed-off-by: Sage Weil <sage@inktank.com>
src/Makefile.am

index bbd38e618434c94cd3424958a89c4047cf30b501..7a08e1f5a2a83bba3e024475af1066c0da541e60 100644 (file)
@@ -1141,11 +1141,22 @@ CLEANFILES += ceph_ver.h sample.fetch_config
 
 ##
 
-AM_COMMON_FLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
--D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -rdynamic \
-${WARN_TYPE_LIMITS} ${WARN_IGNORED_QUALIFIERS} -Winit-self -Wpointer-arith \
--fno-strict-aliasing \
--fsigned-char
+AM_COMMON_FLAGS = \
+       -D__CEPH__ \
+       -D_FILE_OFFSET_BITS=64 \
+       -D_REENTRANT \
+       -D_THREAD_SAFE \
+       -D__STDC_FORMAT_MACROS \
+       -D_GNU_SOURCE \
+       -rdynamic \
+       -Wall \
+       ${WARN_TYPE_LIMITS} \
+       ${WARN_IGNORED_QUALIFIERS} \
+       -Winit-self \
+       -Wpointer-arith \
+       -Werror=format-security \
+       -fno-strict-aliasing \
+       -fsigned-char
 
 AM_CFLAGS = $(AM_COMMON_FLAGS)
 AM_CXXFLAGS = \