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:
parent
705a5c66a8
commit
8ce962a3bd
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue