[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200414170006.10f70d361bfd085f3e846939@linux-foundation.org>
Date: Tue, 14 Apr 2020 17:00:06 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: George Burgess IV <gbiv@...gle.com>
Cc: ndesaulniers@...gle.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tools/build: tweak unused value workaround
On Tue, 14 Apr 2020 12:56:38 -0700 George Burgess IV <gbiv@...gle.com> 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?
Powered by blists - more mailing lists