summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-12-13 00:46:13 -0800
committerPatrick Ohly <patrick.ohly@intel.com>2018-01-03 10:39:50 +0100
commit8ce962a3bd826538422babe973d4c5b908ca0a50 (patch)
tree44331e5a95f270912d95ae87bfd4d20cbc3b2ac7
parent705a5c66a8f65f4f39059f60d8410dce2430e06c (diff)
runtests.py: suppress m_source cppcheck warning
Recent cppcheck warns about m_source not being initialized, which is a false positive (it's a reference and gets initialized). Inline suppressions did not work, so instead disable the entire warning for SyncSource.h. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
-rwxr-xr-xtest/runtests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/runtests.py b/test/runtests.py
index 4d1d0c8f..8fed3571 100755
--- a/test/runtests.py
+++ b/test/runtests.py
@@ -1374,7 +1374,9 @@ if options.sourcedir:
if options.nosourcedircopy:
if options.cppcheck:
sync = CppcheckSource("syncevolution", options.sourcedir,
- "--enable=warning,performance,portability --inline-suppr")
+ "--enable=warning,performance,portability --inline-suppr " +
+ # bogus: cppcheck warning: uninitMemberVar - Member variable 'OperationWrapperSwitch::m_source' is not initialized in the constructor.
+ "--suppress=uninitMemberVar:*/SyncSource.h")
else:
sync = NopSource("syncevolution", options.sourcedir)
else: