Blame SOURCES/0001-Make-some-compiler-versions-ignore-missing-field-ini.patch

f656dd
From dfe3645bb2535904f441d9031080dd4cd118688a Mon Sep 17 00:00:00 2001
f656dd
From: Peter Jones <pjones@redhat.com>
f656dd
Date: Mon, 11 Jun 2018 13:04:43 -0400
f656dd
Subject: [PATCH 1/2] Make some compiler versions ignore missing field
f656dd
 initializers.
f656dd
f656dd
There's literally no reason for -Wmissing-field-initializers to ever
f656dd
trigger when you're using -std= /anything c99 or newer/, but some
f656dd
compilers do, so nerf it out.
f656dd
f656dd
Signed-off-by: Peter Jones <pjones@redhat.com>
f656dd
---
f656dd
 efi/Makefile   | 1 +
f656dd
 linux/Makefile | 1 +
f656dd
 2 files changed, 2 insertions(+)
f656dd
f656dd
diff --git a/efi/Makefile b/efi/Makefile
f656dd
index 6699af1d400..f4d079e8816 100644
f656dd
--- a/efi/Makefile
f656dd
+++ b/efi/Makefile
f656dd
@@ -13,6 +13,7 @@ CFLAGS	?= -Og -g3 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 \
f656dd
 	   -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 \
f656dd
 	   -grecord-gcc-switches
f656dd
 BUILDFLAGS	:= $(CFLAGS) -fpic -Werror -Wall -Wextra -fshort-wchar \
f656dd
+	-Wno-error=missing-field-initializers -Wno-missing-field-initializers \
f656dd
 	-fno-merge-constants -ffreestanding \
f656dd
 	-fno-stack-protector -fno-stack-check --std=gnu11 -DCONFIG_$(ARCH) \
f656dd
 	-I/usr/include/efi/ -I/usr/include/efi/$(ARCH)/ \
f656dd
diff --git a/linux/Makefile b/linux/Makefile
f656dd
index 6089b4758bb..7aed70495cb 100644
f656dd
--- a/linux/Makefile
f656dd
+++ b/linux/Makefile
f656dd
@@ -34,6 +34,7 @@ endif
f656dd
 BUILDFLAGS := $(CFLAGS) -Wall -Wextra -Werror -Wno-error=cpp \
f656dd
 	-Wno-unused-result -Wno-unused-function \
f656dd
 	-Wsign-compare -Werror=sign-compare \
f656dd
+	-Wno-error=missing-field-initializers -Wno-missing-field-initializers \
f656dd
 	-fshort-wchar --std=gnu11 \
f656dd
 	-DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE \
f656dd
 	-DFWUP_EFI_DIR_NAME=\"$(EFIDIR)\"  \
f656dd
-- 
f656dd
2.17.1
f656dd