Re: [PATCH 15/52] m68k: emu: Mark version[] __maybe_unused

From: Arnd Bergmann
Date: Sat Sep 09 2023 - 04:28:44 EST


On Thu, Sep 7, 2023, at 15:41, Geert Uytterhoeven wrote:
> When building with W=1:
>
> m68k/arch/m68k/emu/nfeth.c:42:19: warning: ‘version’ defined but
> not used [-Wunused-const-variable=]
> 42 | static const char version[] =
> | ^~~~~~~
>
> Fix this while obeying the wishes of the original copyright holders by
> marking version[] with __maybe_unused.
>
> Signed-off-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

That will just drop it from the object file, maybe it should
instead be marked "__used" ?

Arnd