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>
This commit is contained in:
Patrick Ohly 2017-12-13 00:46:13 -08:00
parent 705a5c66a8
commit 8ce962a3bd

View file

@ -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: