Makefile: add -Wformat to CFLAGS

-Werror=format-security seems to be ignored without -Wformat

Thanks @ Christoph Brill
master
Harald Hoyer 2015-01-08 14:53:30 +01:00
parent e0dc6cd4f6
commit 1dc360790d
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ sysconfdir ?= ${prefix}/etc
bindir ?= ${prefix}/bin
mandir ?= ${prefix}/share/man
CFLAGS ?= -O2 -g -Wall
CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
bashcompletiondir ?= ${datadir}/bash-completion/completions

man1pages = lsinitrd.1