Re: [PATCH] tools/build: tweak unused value workaround

From: Andrew Morton
Date: Tue Apr 14 2020 - 20:00:17 EST


On Tue, 14 Apr 2020 12:56:38 -0700 George Burgess IV <gbiv@xxxxxxxxxx> wrote:

> Clang has -Wself-assign enabled by default under -Wall, which always
> gets -Werror'ed on this file, causing sync-compare-and-swap to be
> disabled by default. The generally-accepted way to spell "this value is
> intentionally unused," is casting it to `void`. This is accepted by both
> GCC and Clang with -Wall enabled: https://godbolt.org/z/qqZ9r3
>

What does "disabled by default" mean? Presumably it should now be
enabled, but I don't think this disabling happens in the mainline
kernel tree?