]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Makefile: add -Wformat to CFLAGS
authorHarald Hoyer <harald@redhat.com>
Thu, 8 Jan 2015 13:53:30 +0000 (14:53 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 8 Jan 2015 13:56:07 +0000 (14:56 +0100)
-Werror=format-security seems to be ignored without -Wformat

Thanks @ Christoph Brill

Makefile

index 7127368d02a56431e8b4e5a65e1f35cc708c9083..41ae2740d05292152e2cf3d1923514d4a00d7548 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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