Messages in this thread | | | Date | Tue, 14 Apr 2020 17:00:06 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] tools/build: tweak unused value workaround |
| |
On Tue, 14 Apr 2020 12:56:38 -0700 George Burgess IV <gbiv@google.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?
| |