Blame 0080-Makefile-add-Wformat-to-CFLAGS.patch

Harald Hoyer b6778c
From 1dc360790d6cdaaa124b299e8d375e3670863312 Mon Sep 17 00:00:00 2001
Harald Hoyer b6778c
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer b6778c
Date: Thu, 8 Jan 2015 14:53:30 +0100
Harald Hoyer b6778c
Subject: [PATCH] Makefile: add -Wformat to CFLAGS
Harald Hoyer b6778c
Harald Hoyer b6778c
-Werror=format-security seems to be ignored without -Wformat
Harald Hoyer b6778c
Harald Hoyer b6778c
Thanks @ Christoph Brill
Harald Hoyer b6778c
---
Harald Hoyer b6778c
 Makefile | 2 +-
Harald Hoyer b6778c
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer b6778c
Harald Hoyer b6778c
diff --git a/Makefile b/Makefile
Harald Hoyer b6778c
index 7127368..41ae274 100644
Harald Hoyer b6778c
--- a/Makefile
Harald Hoyer b6778c
+++ b/Makefile
Harald Hoyer b6778c
@@ -13,7 +13,7 @@ sysconfdir ?= ${prefix}/etc
Harald Hoyer b6778c
 bindir ?= ${prefix}/bin
Harald Hoyer b6778c
 mandir ?= ${prefix}/share/man
Harald Hoyer b6778c
 CFLAGS ?= -O2 -g -Wall
Harald Hoyer b6778c
-CFLAGS += -std=gnu99  -D_FILE_OFFSET_BITS=64 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
Harald Hoyer b6778c
+CFLAGS += -std=gnu99 -D_FILE_OFFSET_BITS=64 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
Harald Hoyer b6778c
 bashcompletiondir ?= ${datadir}/bash-completion/completions
Harald Hoyer b6778c
 
Harald Hoyer b6778c
 man1pages = lsinitrd.1