Re: [PATCH] ELF: add and use SUPRESS_WARN_UNUSED_RESULT
From: Miguel Ojeda
Date: Fri Jun 25 2021 - 16:34:53 EST
On Fri, Jun 25, 2021 at 9:52 PM Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
>
> +/*
> + * "(void)" is enough for clang but not for gcc.
> + */
> +#define SUPRESS_WARN_UNUSED_RESULT (void)!
While it is related to the attribute, this macro is not an attribute,
so please add it somewhere else.
By the way, the name has a typo.
Cheers,
Miguel