Skip to content

fix clang 23 unused but set warnings

Stephen Hemminger dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4common/dpaax: fix unused variable warning in non-debug builddrivers/common/dpaax/dpaax_logs.h+2 -10 replies
2/4bus/dpaa: remove unused qman_clk variabledrivers/bus/dpaa/base/qbman/qman_driver.c+0 -40 replies
3/4common/zsda: remove unused device counterdrivers/common/zsda/zsda_device.c+0 -50 replies
4/4net/qede: remove unused app version variabledrivers/net/qede/qede_debug.c+0 -200 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHemant AgrawalDavid Marchand
SeriesA-b
1/4A-b
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] fix clang 23 unused but set warnings

Clang 23 adds -Wunused-but-set-global, which reports file scope variables that are assigned but never read. It is enabled by -Wall and does not appear with gcc or with clang 20 through 22.

Three of these are dead variables and are simply removed. The fourth, 'alive' in dpaa_of.c, is a real debug aid: it is only read by DPAAX_HWWARN, which discards its condition when RTE_LIBRTE_DPAAX_DEBUG is not defined. That one is fixed by making the empty expansion consume its argument, which keeps the condition compiled in both builds and covers every other DPAAX_HWWARN user as well.

v2 - remove more unused code as suggested.

Stephen Hemminger (4):
common/dpaax: fix unused variable warning in non-debug build bus/dpaa: remove unused qman_clk variable common/zsda: remove unused device counter net/qede: remove unused app version variable

 drivers/bus/dpaa/base/qbman/qman_driver.c |  4 ----
 drivers/common/dpaax/dpaax_logs.h         |  3 ++-
 drivers/common/zsda/zsda_device.c         |  5 -----
 drivers/net/qede/qede_debug.c             | 20 --------------------
 4 files changed, 2 insertions(+), 30 deletions(-)
Signature · 1 line
2.53.0