mirror of
https://github.com/ceph/ceph
synced 2025-01-25 12:34:46 +00:00
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:
parent
d37a7bcce4
commit
03b93260f5
@ -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 = \
|
||||
|
Loading…
Reference in New Issue
Block a user