mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-02 14:44:41 +03:00
Fix/Suppress remaining Cppcheck warnings (#291)
Fix/suppress the following cppcheck warnings: * arithOperationsOnVoidPointer * uninitMember * const* * shadowVariable * assignmentIntegerToAddress * containerOutOfBounds * pointer-related warnings in Ragel source * missingOverride * memleak * knownConditionTrueFalse * noExplicitConstructor * invalidPrintfArgType_sint * useStlAlgorithm * cstyleCast * clarifyCondition * VSX-related cstyleCast * unsignedLessThanZero Furthermore, we added a suppression list to be used, which also includes the following: * missingIncludeSystem * missingInclude * unmatchedSuppression
This commit is contained in:
committed by
GitHub
parent
a8e43a4c0b
commit
02fc8e3b1c
@@ -595,6 +595,7 @@ void GoughSSAVarNew::generate(vector<gough_ins> *out) const {
|
||||
#ifndef NDEBUG
|
||||
template<typename C, typename K>
|
||||
bool contains_loose(const C &container, const K &key) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
for (const auto &elem : container) {
|
||||
if (elem == key) {
|
||||
return true;
|
||||
@@ -986,7 +987,6 @@ void copy_in_blocks(raw_som_dfa &raw, u8 alphaShift, const GoughGraph &cfg,
|
||||
}
|
||||
|
||||
bool find_normal_self_loop(GoughVertex v, const GoughGraph &g, GoughEdge *out) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
for (const auto &e : out_edges_range(v, g)) {
|
||||
if (target(e, g) != v) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user