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