aboutsummaryrefslogtreecommitdiff
path: root/tools/static-analysis
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2022-02-02 12:04:58 -0800
committerLukas Rusak <lorusak@gmail.com>2022-02-02 17:53:48 -0800
commit7da360df5c0bdca92889d6a719b2067baa9404e9 (patch)
tree2367b353234079225d8fa3dadd304d0029a02e29 /tools/static-analysis
parentf8f8770711e091b779dfc6b6e64a4c8df4adae02 (diff)
[cmake] cppcheck: add rules to help suppress false positives
Diffstat (limited to 'tools/static-analysis')
-rw-r--r--tools/static-analysis/cppcheck/cppcheck-rules.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/static-analysis/cppcheck/cppcheck-rules.xml b/tools/static-analysis/cppcheck/cppcheck-rules.xml
new file mode 100644
index 0000000000..35f1fd18c7
--- /dev/null
+++ b/tools/static-analysis/cppcheck/cppcheck-rules.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<def>
+ <type-checks>
+ <unusedvar>
+ <suppress>CSingleLock</suppress>
+ <suppress>CSharedLock</suppress>
+ <suppress>CExclusiveLock</suppress>
+ </unusedvar>
+ </type-checks>
+</def>