]> git.baikalelectronics.ru Git - uboot.git/commit
pylibfdt: Rework "avoid unused variable warning" lines
authorTom Rini <trini@konsulko.com>
Mon, 24 May 2021 15:47:01 +0000 (11:47 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 15:47:44 +0000 (11:47 -0400)
commit92bfe8425ea7b56e96df1ddbcf5a274869693b6d
treec9ac84543e513726385342335be2b25ac0ddd0e6
parent195c3eae7fbd7d4e089076cdd81bb3bd3bd68c1c
pylibfdt: Rework "avoid unused variable warning" lines

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@konsulko.com>
scripts/dtc/pylibfdt/libfdt.i_shipped