From: Sage Weil Date: Mon, 20 May 2013 16:09:25 +0000 (-0700) Subject: Makefile: add -Wformat-security X-Git-Tag: v0.64~96 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=03b93260f523b089edbddd9ac82c841f9d5ad02b;p=ceph.git Makefile: add -Wformat-security Clean up the formatting a bit here too. Signed-off-by: Sage Weil --- diff --git a/src/Makefile.am b/src/Makefile.am index bbd38e618434..7a08e1f5a2a8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 = \