fix clang 23 unused but set warnings
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 2 repliesIn review
- v14 patches 6 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | common/dpaax: fix unused variable warning in non-debug builddrivers/ | +2 | 0 replies | |
| 2/4 | bus/dpaa: remove unused qman_clk variabledrivers/ | +0 | 0 replies | |
| 3/4 | common/zsda: remove unused device counterdrivers/ | +0 | 0 replies | |
| 4/4 | net/qede: remove unused app version variabledrivers/ | +0 | 0 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.
| Patch | Hemant Agrawal | David Marchand |
|---|---|---|
| Series | A-b | |
| 1/4 | A-b | |
| 2/4 | A-b | |
| 3/4 | ||
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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