mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-01 22:25:42 +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
@@ -137,13 +137,13 @@ void dumpTextReverse(const struct NFA *nfa, FILE *f) {
|
||||
char c2 = nfa->rAccelData.array[1];
|
||||
|
||||
if (!twofer) {
|
||||
fprintf(f, " \\x%02hhx (%c) ", c1, isprint(c1) ? c1 : '?');
|
||||
fprintf(f, " \\x%02hhx (%c) ", static_cast<u8>(c1), isprint(c1) ? c1 : '?');
|
||||
} else {
|
||||
fprintf(f, " \\x%02hhx\\x%02hhx (%c%c) ", c1, c2,
|
||||
fprintf(f, " \\x%02hhx\\x%02hhx (%c%c) ", static_cast<u8>(c1), static_cast<u8>(c2),
|
||||
isprint(c1) ? c1 : '?', isprint(c2) ? c2 : '?');
|
||||
}
|
||||
|
||||
fprintf(f, "offset %hhd\n", nfa->rAccelOffset);
|
||||
fprintf(f, "offset %hhu\n", nfa->rAccelOffset);
|
||||
}
|
||||
|
||||
} // namespace ue2
|
||||
|
||||
Reference in New Issue
Block a user