[PATCH v2 0/6] Enable warnings about use of comma operator
Stephen Hemminger
stephen at networkplumber.org
Thu Aug 14 23:28:46 CEST 2025
This series was motivated by recent thread on netdev
about build with -Wcomma in clang. This warning catches code
that uses comma where a semi-colon is a better choice.
v2 - rebase and drop any driver related changes
Stephen Hemminger (6):
eal: replace unnecessary comma operator
ipsec: replace unnecessary comma operator
graph: replace unnecessary comma operator
test: replace unnecessary comma operators
app/testpmd: replace comma operator with bracket
config: enable comma warnings
app/test-pmd/cmdline_flow.c | 6 ++++--
app/test-pmd/config.c | 10 ++++++----
app/test/test_compressdev.c | 4 ++--
app/test/test_link_bonding_rssconf.c | 2 +-
app/test/test_thash.c | 2 +-
config/meson.build | 1 +
drivers/meson.build | 2 +-
lib/eal/common/rte_malloc.c | 4 ++--
lib/eal/linux/eal_alarm.c | 6 ++++--
lib/graph/graph_stats.c | 2 +-
lib/ipsec/misc.h | 3 ++-
11 files changed, 25 insertions(+), 17 deletions(-)
--
2.47.2
More information about the dev
mailing list