build: enable printf format warnings
Some of these are covered under -Wall, but add them all just to be clear. Change-Id: I63104be4bf58becd19a4c30a4d275d2c24c6761d Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
28b4b01136
commit
3a2b871a41
@ -45,6 +45,8 @@ OS := $(shell uname)
|
||||
|
||||
COMMON_CFLAGS = -g $(C_OPT) -Wall -Werror -fno-strict-aliasing -march=native -m64 -I$(SPDK_ROOT_DIR)/include
|
||||
|
||||
COMMON_CFLAGS += -Wformat -Wformat-security -Wformat-nonliteral
|
||||
|
||||
# Enable full RELRO - no lazy relocation (resolve everything at load time).
|
||||
# This allows the GOT to be made read-only early in the loading process.
|
||||
LDFLAGS += -Wl,-z,relro,-z,now
|
||||
|
Loading…
Reference in New Issue
Block a user