cppcheck warnings 5,6 #257
Merged
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.
mostly false positives..
src/nfa/nfa_api_queue.h:254 [nullPointerRedundantCheck] -> false positive
src/nfa/nfa_api_queue.h:255: [nullPointerRedundantCheck] -> false positive
src/nfa/nfa_api_queue.h:256: [nullPointerRedundantCheck] -> false positive
src/nfa/nfa_api_queue.h:257: [nullPointerRedundantCheck] -> false positive
src/nfa/nfa_api_queue.h:258: [nullPointerRedundantCheck] -> false positive
unit/internal/multi_bit.cpp:58: [arithOperationsOnVoidPointer] -> not actually a
void pointer, it's declared as unique_ptr<u8[]>
unit/internal/multi_bit.cpp:62: [arithOperationsOnVoidPointer] -> not actually a
void pointer, it's declared as unique_ptr<u8[]>
unit/internal/multi_bit_compress.cpp:97 [arithOperationsOnVoidPointer] -> not ac
tually a void pointer, it's declared as unique_ptr<u8[]>
unit/internal/multi_bit_compress.cpp:101 [arithOperationsOnVoidPointer] -> not a
ctually a void pointer, it's declared as unique_ptr<u8[]>
unit/internal/multi_bit_compress.cpp:119 [arithOperationsOnVoidPointer] -> not a
ctually a void pointer, it's declared as unique_ptr<u8[]>
unit/internal/multi_bit_compress.cpp:123 [arithOperationsOnVoidPointer] -> not a
ctually a void pointer, it's declared as unique_ptr<u8[]>
src/nfa/rdfa.h:81 [uninitMemberVar] -> not a problem, the logic for this is else
where.
src/util/graph_undirected.h:154 [uninitMemberVar] -> yes, it actually is initia
lized in the constructor.
src/util/graph_undirected.h:244 [uninitMemberVar] -> yes, it actually is initia
lized in the constructor.
src/util/ue2_graph.h:263 [uninitMemberVar] -> it looks like the variable in ques
tion is set elsewhere
src/util/ue2_graph.h:279 [uninitMemberVar] -> it looks like the variable in ques
tion is set elsewhere
benchmarks/benchmarks.hpp:55 [uninitMemberVar] -> yes, it is initialized in the
constructor