summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-05 16:12:00 -0500
committerJan Setje-Eilers <73182357+jsetje@users.noreply.github.com>2021-03-09 13:52:53 -0800
commit233b1cc54f34a8e61b9bc1805af2657cab1bd722 (patch)
tree80dd33cb81192058edddb8c93e495fe53a242b78
parent4425a1bf8b60cc4a3a17f5ee98d0ee771447815d (diff)
downloadefi-boot-shim-233b1cc54f34a8e61b9bc1805af2657cab1bd722.tar.gz
efi-boot-shim-233b1cc54f34a8e61b9bc1805af2657cab1bd722.zip
Switch to using -std=gnu11
There's no actual reason we're using -std=gnu89, but it means we get the "gnu89-inline" semantics, which we would prefer to have to specify manually when we want it, if ever, which so far we don't. This also allows us to use some saner syntax without having to nerf various -W options and similar later, and enables some language features that are pretty useful, but that's just icing. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--Make.defaults2
1 files changed, 1 insertions, 1 deletions
diff --git a/Make.defaults b/Make.defaults
index 13393496..f079b227 100644
--- a/Make.defaults
+++ b/Make.defaults
@@ -105,7 +105,7 @@ INCLUDES = -nostdinc \
-I$(TOPDIR)/include -iquote $(TOPDIR) -iquote $(shell pwd)
override DEFAULT_FEATUREFLAGS = \
- -std=gnu89 \
+ -std=gnu11 \
-ggdb \
-ffreestanding \
-fmacro-prefix-map='$(TOPDIR)/=$(DEBUGSRC)' \