[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164450760835.15967.16970904238415952820.git-patchwork-notify@kernel.org>
Date: Thu, 10 Feb 2022 15:40:08 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Victor Erminpour <victor.erminpour@...cle.com>
Cc: davem@...emloft.net, kuba@...nel.org, bpoirier@...dia.com,
l4stpr0gr4m@...il.com, jiapeng.chong@...ux.alibaba.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
trivial@...nel.org
Subject: Re: [PATCH] net: mpls: Fix GCC 12 warning
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <davem@...emloft.net>:
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
Powered by blists - more mailing lists