Makefile: add -Wformat-security

Clean up the formatting a bit here too.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-05-20 09:09:25 -07:00
parent d37a7bcce4
commit 03b93260f5

View 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 = \