Skip to content
Commit c4416f5c authored by Victor Erminpour's avatar Victor Erminpour Committed by David S. Miller
Browse files

net: mpls: Fix GCC 12 warning



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;
       |                     ^~~

Signed-off-by: default avatarVictor Erminpour <victor.erminpour@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9ccc6e0c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment