Fixed restoration of the panel divider position.
[psensor.git] / tests / test-cppcheck.sh
old mode 100644 (file)
new mode 100755 (executable)
index 0ecbe43..74f6eab
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-EIDS=performance,portability,information,unusedFunction,missingInclude
+EIDS=performance,portability
+ROOTDIR="$srcdir/.."
+INCLUDE_OPTS="-q -f -I$ROOTDIR/src/lib -I$ROOTDIR/src -I$ROOTDIR -I$ROOTDIR/.."
 
-cppcheck ../src -I../src/lib -I../src -I.. --enable=$EIDS --quiet --error-exitcode=1 || exit 1
\ No newline at end of file
+cppcheck $ROOTDIR/src $INCLUDE_OPTS --enable=$EIDS --quiet --error-exitcode=1 || exit 1