Browse Source

Makefile: add -Wformat to CFLAGS

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

Thanks @ Christoph Brill
master
Harald Hoyer 10 years ago
parent
commit
1dc360790d
  1. 2
      Makefile

2
Makefile

@ -13,7 +13,7 @@ sysconfdir ?= ${prefix}/etc @@ -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

Loading…
Cancel
Save