[PATCH] pylibfdt: Rework "avoid unused variable warning" lines

Tom Rini trini at konsulko.com
Tue May 25 02:58:09 CEST 2021


On Mon, May 24, 2021 at 11:47:27AM -0400, Tom Rini wrote:

> Clang has -Wself-assign enabled by default under -Wall and so when
> building with -Werror we would get an error here.  Inspired by Linux
> kernel git commit a21151b9d81a ("tools/build: tweak unused value
> workaround") make use of the fact that both Clang and GCC support
> casting to `void` as the method to note that something is intentionally
> unused.
> 
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/ea5ee3ae/attachment.sig>


More information about the U-Boot mailing list