* [DPDK/ethdev Bug 2139] net/mlx4: unreachable code warnings
@ 2026-11-17 17:16 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-11-17 17:16 UTC (permalink / raw)
To: dev
https://bugs.dpdk.org/show_bug.cgi?id=2139
Bug ID: 2139
Summary: net/mlx4: unreachable code warnings
Product: DPDK
Version: 26.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: stephen@networkplumber.org
Target Milestone: ---
Building with clang and -Wunreachable-code generates warning:
../drivers/net/mlx4/mlx4_flow.c:761:4: warning: code will never be executed
[-Wunreachable-code]
761 | const struct rte_flow_action_queue *queue;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
This is caused by putting declarations at start of switch block.
They need to be moved up to fix the warning.
Clang is being overly picky in this case, but worth shutting up the warning
--
You are receiving this mail because:
You are the assignee for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-17 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 17:16 [DPDK/ethdev Bug 2139] net/mlx4: unreachable code warnings bugzilla
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.