From 8ce962a3bd826538422babe973d4c5b908ca0a50 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 13 Dec 2017 00:46:13 -0800 Subject: [PATCH] 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 --- test/runtests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: