pvscheck.sh: do not set --sourcetree-root [ci skip]

System headers should be ignored by PVS, but somehow aren't.
See also: https://stackoverflow.com/q/44906903
This commit is contained in:
Justin M. Keyes 2019-01-19 12:27:06 +01:00
parent 8a5c68f695
commit 391f0c1ce7

View File

@ -371,10 +371,10 @@ run_analysis() {(
--output-file PVS-studio.log \
--verbose \
--file build/compile_commands.json \
--sourcetree-root . || true
|| true
rm -rf PVS-studio.{xml,err,tsk,html.d}
local plog_args="PVS-studio.log --srcRoot . --excludedCodes V011 --exclude-path stddef.h --exclude-path stdarg.h"
local plog_args="PVS-studio.log --srcRoot . --excludedCodes V011"
plog-converter $plog_args --renderTypes xml --output PVS-studio.xml
plog-converter $plog_args --renderTypes errorfile --output PVS-studio.err
plog-converter $plog_args --renderTypes tasklist --output PVS-studio.tsk
@ -473,8 +473,6 @@ main() {
return 0
fi
# set -x
if test -n "$patch" ; then
patch_sources "$tgt" "$only_build"
elif test -n "$pvs_install" ; then