Address cppcheck 2.10 warnings (#2163)

Disable newer cppcheck until we can diagnose this further.
References #2162.
This commit is contained in:
Andrew Gaul
2023-06-25 16:04:16 +09:00
committed by GitHub
parent 45e7cd085a
commit 3b6688253f
4 changed files with 5 additions and 6 deletions

View File

@ -101,8 +101,8 @@ jobs:
- name: Cppcheck
run: |
# work around resource leak false positives on older Linux distributions
if cppcheck --version | awk '{if ($2 <= 1.86) { exit(1) } }'; then
# work around resource leak false positives on older and newer Linux distributions
if cppcheck --version | awk '{if ($2 <= 1.86 || $2 >= 2.10) { exit(1) } }'; then
make cppcheck
fi