Update cppcheck to 2.21 - #2199
Draft
Dimi1010 wants to merge 59 commits into
Draft
Conversation
# Conflicts: # Packet++/src/SSLHandshake.cpp # cppcheckSuppressions.txt
# Conflicts: # Packet++/src/IPv4Layer.cpp
# Conflicts: # .github/workflows/build_and_test.yml
…ass 2 byte value.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #2199 +/- ##
==========================================
+ Coverage 79.80% 82.68% +2.87%
==========================================
Files 332 333 +1
Lines 54032 60246 +6214
Branches 12511 12852 +341
==========================================
+ Hits 43121 49813 +6692
- Misses 8548 9552 +1004
+ Partials 2363 881 -1482
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This reverts commit a6aa016.
# Conflicts: # Examples/IPDefragUtil/main.cpp # Examples/IPFragUtil/main.cpp
- SocketContainer is moved to be a private struct under RawSocketDevice. This allows replacement of `void* m_Socket` with a typed SocketContainer smart pointer and removal of many casts in the implementation. - Added constructors to SocketContainer to fix uninitialized member variable warnings.
…ters. - Also fixes dangerous type cast.
…d parameter. The change fixes cppcheck warnings about missing copy constructor and copy assignment operations.
This was referenced Aug 8, 2026
This was referenced Aug 15, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PR updates cppcheck to 2.21 and applies fixes to flagged warnings.