mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 01:12:15 +03:00
Various cppcheck fixes (#337)
This commit is contained in:
committed by
GitHub
parent
d90ab3ac1c
commit
689556d5f9
@@ -93,7 +93,7 @@ extern "C" {
|
||||
|
||||
static
|
||||
hwlmcb_rv_t decentCallback(size_t end, u32 id,
|
||||
UNUSED struct hs_scratch *scratch) {
|
||||
UNUSED struct hs_scratch *scratch) { // cppcheck-suppress constParameterCallback
|
||||
DEBUG_PRINTF("match @%zu : %u\n", end, id);
|
||||
|
||||
matches.push_back(match(end, id));
|
||||
@@ -102,7 +102,7 @@ hwlmcb_rv_t decentCallback(size_t end, u32 id,
|
||||
|
||||
static
|
||||
hwlmcb_rv_t decentCallbackT(size_t end, u32 id,
|
||||
UNUSED struct hs_scratch *scratch) {
|
||||
UNUSED struct hs_scratch *scratch) { // cppcheck-suppress constParameterCallback
|
||||
matches.push_back(match(end, id));
|
||||
return HWLM_TERMINATE_MATCHING;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ map<u32, int> matchesCounts;
|
||||
extern "C" {
|
||||
|
||||
static hwlmcb_rv_t countCallback(UNUSED size_t end, u32 id,
|
||||
UNUSED struct hs_scratch *scratch) {
|
||||
UNUSED struct hs_scratch *scratch) { // cppcheck-suppress constParameterCallback
|
||||
matchesCounts[id]++;
|
||||
return HWLM_CONTINUE_MATCHING;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user