Visitar URL original
#14585 (wildcard suppression incorrectly reported as unmatched with cached results) – Cppcheck

Opened 8 months ago

Closed 8 months ago

Last modified 5 months ago

#14585 closed defect (fixed)

wildcard suppression incorrectly reported as unmatched with cached results

Reported by: kidkat Owned by: kidkat
Priority: safety-cosmetic Milestone: 2.21
Component: Other Version:
Keywords: unmatchedSuppression builddir Cc:

Description

Encountered while working on ​https://github.com/danmar/cppcheck/pull/7079.

void f()
{
    (void)(*((int*)0));
}
$ ./cppcheck --template=simple --enable=information --suppress=checkersReport --cppcheck-build-dir=b1 --suppress='nullPointer:a*.cpp' a.cpp
Checking a.cpp ...
$ ./cppcheck --template=simple --enable=information --suppress=checkersReport --cppcheck-build-dir=b1 --suppress='nullPointer:a*.cpp' a.cpp
Checking a.cpp ...
a*.cpp:0:0: information: Unmatched suppression: nullPointer [unmatchedSuppression]

Change History (3)

comment:1 by kidkat, 8 months ago

Summary: wildcard suppression reported as unmatched with cached results → wildcard suppression incorrectly reported as unmatched with cached results

comment:2 by kidkat, 8 months ago

Milestone: → 2.21
Resolution: → fixed
Status: assigned → closed

comment:3 by Daniel Marjamäki, 5 months ago

Priority: Normal → safety-cosmetic
Note: See TracTickets for help on using tickets.