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

Arnd Bergmann
2023-09-09T08:28:38Z

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@linux-m68k.org>

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

Arnd