Skip to content

Commit 3ce2065

Browse files
committed
Make some compiler versions ignore missing field initializers.
There's literally no reason for -Wmissing-field-initializers to ever trigger when you're using -std= /anything c99 or newer/, but some compilers do, so nerf it out. Signed-off-by: Peter Jones <pjones@redhat.com>
1 parent cf513a8 commit 3ce2065

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

efi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CFLAGS ?= -Og -g3 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 \
1313
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 \
1414
-grecord-gcc-switches
1515
BUILDFLAGS := $(CFLAGS) -fpic -Werror -Wall -Wextra -fshort-wchar \
16+
-Wno-error=missing-field-initializers -Wno-missing-field-initializers \
1617
-fno-merge-constants -ffreestanding \
1718
-fno-stack-protector -fno-stack-check --std=gnu11 -DCONFIG_$(ARCH) \
1819
-I/usr/include/efi/ -I/usr/include/efi/$(ARCH)/ \

linux/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ endif
3434
BUILDFLAGS := $(CFLAGS) -Wall -Wextra -Werror -Wno-error=cpp \
3535
-Wno-unused-result -Wno-unused-function \
3636
-Wsign-compare -Werror=sign-compare \
37+
-Wno-error=missing-field-initializers -Wno-missing-field-initializers \
3738
-fshort-wchar --std=gnu11 \
3839
-DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE \
3940
-DFWUP_EFI_DIR_NAME=\"$(EFIDIR)\" \

0 commit comments

Comments
 (0)