]> git.baikalelectronics.ru Git - uboot.git/commit
tools: Stop re-defining -std= when building tools
authorTom Rini <trini@konsulko.com>
Mon, 11 Oct 2021 15:11:41 +0000 (11:11 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 19 Oct 2021 15:25:25 +0000 (11:25 -0400)
commitc46c3f27273403d02cb4061b39a50d4113bd5f85
tree46c2e388672c983236b4d7db7be4769297793be3
parentcb1896718e93b9e156e3cbfdb3884a575cd31021
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>
Makefile
tools/Makefile