All of lore.kernel.org
 help / color / mirror / Atom feed
* [DPDK/core Bug 2135] eal: unreachable code warning
@ 2026-11-17 17:07 bugzilla
  2026-11-17 17:21 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2026-11-17 17:07 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=2135

            Bug ID: 2135
           Summary: eal: unreachable code warning
           Product: DPDK
           Version: 26.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Low
         Component: core
          Assignee: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  Target Milestone: ---

Building with clang and -Wunreachable-code finds this:

[18/3982] Compiling C object lib/librte_eal.a.p/eal_common_rte_version.c.o
../lib/eal/common/rte_version.c:40:3: warning: code will never be executed
[-Wunreachable-code]
   40 |                 snprintf(version, sizeof(version), "%s %d.%02d.%d",
      |                 ^~~~~~~~
../lib/eal/common/rte_version.c:39:32: note: silence by adding parentheses to
mark code as explicitly dead
   39 |         if (strlen(RTE_VER_SUFFIX) == 0)
      |                                       ^
      |                                       /* DISABLES CODE */ ( )
1 warning generated.

It can be fixed by adding parens, using sizeof, or useing RTE_VERSION which is
already built by meson.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-17 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 17:07 [DPDK/core Bug 2135] eal: unreachable code warning bugzilla
2026-11-17 17:21 ` Bruce Richardson

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.