From: Tom Rini Date: Mon, 14 May 2018 10:47:25 -0400 Subject: [U-Boot] [PATCH v2] Makefile: adopt --std=gnu11 for HOSTCFLAGS on Linux In-Reply-To: <1526304126-47200-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1526304126-47200-1-git-send-email-philipp.tomsich@theobroma-systems.com> Message-ID: <20180514144725.GP12235@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 14, 2018 at 03:22:06PM +0200, Philipp Tomsich wrote: > Following the conversion of the SPDX license tags, a number of files > compiled with -pedantic now generate warnings similar to the following > for using C99-style '//' comments in ISO C90 code: > > tools/gen_eth_addr.c:1:1: warning: C++ style comments are not allowed in ISO C90 > // SPDX-License-Identifier: GPL-2.0+ > ^ > > The SPDX comment-style change means that these files have adopted C99, > so need to change the language-standard to --std=gnu99 or --std=gnu11 > to let the compiler know this. > > As we now require GCC 6 or newer for the cross-compiler, the project has > implicitly moved the project to GNU11: let older GCC versions on various > Linux distros know to treat our host tools as GNU11 as well. > > References: commit 83d290c56fab ("SPDX: Convert all of our single license tags to Linux Kernel style") > Signed-off-by: Philipp Tomsich Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: