Skip to content

Commit

Permalink
Make some compiler versions ignore missing field initializers.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vathpela committed Jun 20, 2018
1 parent cf513a8 commit 3ce2065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions efi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CFLAGS ?= -Og -g3 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 \
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 \
-grecord-gcc-switches
BUILDFLAGS := $(CFLAGS) -fpic -Werror -Wall -Wextra -fshort-wchar \
-Wno-error=missing-field-initializers -Wno-missing-field-initializers \
-fno-merge-constants -ffreestanding \
-fno-stack-protector -fno-stack-check --std=gnu11 -DCONFIG_$(ARCH) \
-I/usr/include/efi/ -I/usr/include/efi/$(ARCH)/ \
Expand Down
1 change: 1 addition & 0 deletions linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ endif
BUILDFLAGS := $(CFLAGS) -Wall -Wextra -Werror -Wno-error=cpp \
-Wno-unused-result -Wno-unused-function \
-Wsign-compare -Werror=sign-compare \
-Wno-error=missing-field-initializers -Wno-missing-field-initializers \
-fshort-wchar --std=gnu11 \
-DLOCALEDIR=\"$(localedir)\" -D_GNU_SOURCE \
-DFWUP_EFI_DIR_NAME=\"$(EFIDIR)\" \
Expand Down

0 comments on commit 3ce2065

Please sign in to comment.