public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH 0/5] Fix cppcheck-2.21.0 warnings
@ 2026-06-15  8:18 David Gibson
  2026-06-15  8:18 ` [PATCH 1/5] cppcheck: Remove unused CPPCHECK_6936 David Gibson
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: David Gibson @ 2026-06-15  8:18 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

Another cppcheck version, another batch of false positives :(.  These
appears to be cppcheck regressions, I've filed two bugs on their
tracker.

Still, here are workarounds in the passt code.  At least I managed to
make a few genuine if minor improvements to the code along the way.

David Gibson (5):
  cppcheck: Remove unused CPPCHECK_6936
  cppcheck: Add workaround for cppcheck bug 14847
  tcp: Merge common sequence logic from tcp_{buf,vu}_data_from_sock()
  tcp: Avoid SEQ_*() comparisons against 0
  tcp: MAX_WINDOW should be unsigned

 Makefile       |  3 +--
 tcp.c          | 50 +++++++++++++++++++++++++++++++++++---------------
 tcp_buf.c      | 28 ++++------------------------
 tcp_buf.h      |  3 ++-
 tcp_internal.h |  4 ++--
 tcp_vu.c       | 27 ++++-----------------------
 tcp_vu.h       |  3 ++-
 util.c         |  6 ++++--
 8 files changed, 54 insertions(+), 70 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-06-15  8:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15  8:18 [PATCH 0/5] Fix cppcheck-2.21.0 warnings David Gibson
2026-06-15  8:18 ` [PATCH 1/5] cppcheck: Remove unused CPPCHECK_6936 David Gibson
2026-06-15  8:18 ` [PATCH 2/5] cppcheck: Add workaround for cppcheck bug 14847 David Gibson
2026-06-15  8:18 ` [PATCH 3/5] tcp: Merge common sequence logic from tcp_{buf,vu}_data_from_sock() David Gibson
2026-06-15  8:50   ` Laurent Vivier
2026-06-15  8:18 ` [PATCH 4/5] tcp: Avoid SEQ_*() comparisons against 0 David Gibson
2026-06-15  8:18 ` [PATCH 5/5] tcp: MAX_WINDOW should be unsigned David Gibson

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).