diff options
author | Tom Rini <trini@konsulko.com> | 2021-10-11 11:11:41 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-19 11:25:25 -0400 |
commit | 4f03a4c7662e79634bc133a2975cc239486237da (patch) | |
tree | 46c2e388672c983236b4d7db7be4769297793be3 /Makefile | |
parent | 1860bdca6a0198c23227588a817bd3b65754bf00 (diff) | |
download | u-boot-4f03a4c7662e79634bc133a2975cc239486237da.tar.gz |
tools: Stop re-defining -std= when building tools
While we intentionally set -std=gnu11 for building host tools, and have
for quite some time, we never dropped -std=gnu99 from tools/Makefile.
This resulted in passing -std=gnu11 ... -std=gnu99 when building, and
gnu99 would win. This in turn would result now in warnings such as:
tools/mkeficapsule.c:25:15: warning: redefinition of typedef 'u32' is a C11 feature [-Wtypedef-redefinition]
typedef __u32 u32;
^
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -299,9 +299,7 @@ KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS) # have older compilers as their default, so we make it explicit for # these that our host tools are GNU11 (i.e. C11 w/ GNU extensions). CSTD_FLAG := -std=gnu11 -ifeq ($(HOSTOS),linux) KBUILD_HOSTCFLAGS += $(CSTD_FLAG) -endif ifeq ($(HOSTOS),cygwin) KBUILD_HOSTCFLAGS += -ansi |