Re: [PATCH] staging: nvec: Silence unused argument warning in NVEC_PHD macro
From: Dan Carpenter
Date: Mon Aug 18 2025 - 02:29:47 EST
On Sun, Aug 17, 2025 at 08:24:25PM +0100, Mohammed Guermoud wrote:
> The NVEC_PHD macro was defined with three arguments (str, buf, len)
> that were not used in its empty body, causing a compiler warning.
>
> This patch silences the warning by explicitly casting the unused
> arguments to (void), making the intent clear without changing
> functionality.
>
> Signed-off-by: Mohammed Guermoud <mohammed.guermoud@xxxxxxxxx>
What's the warning. Does it break the build since we're using -Werror?
I feel like in the end, I'm going to say just ignore the compiler warning
since this is not a bug in the code but obviously if it breaks the build
then that's a different story.
regards,
dan carpenter