Re: [PATCH] net: mpls: Fix GCC 12 warning

From: patchwork-bot+netdevbpf
Date: Thu Feb 10 2022 - 10:40:14 EST


Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Wed, 9 Feb 2022 16:28:38 -0800 you wrote:
> When building with automatic stack variable initialization, GCC 12
> complains about variables defined outside of switch case statements.
> Move the variable outside the switch, which silences the warning:
>
> ./net/mpls/af_mpls.c:1624:21: error: statement will never be executed [-Werror=switch-unreachable]
> 1624 | int err;
> | ^~~
>
> [...]

Here is the summary with links:
- net: mpls: Fix GCC 12 warning
https://git.kernel.org/netdev/net/c/c4416f5c2eb3

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html