diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-12-26 06:47:56 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-12-26 06:47:56 +0200 |
commit | 4ff05c29dcdcd1cf9a4ad145a90290f0589b6422 (patch) | |
tree | d5d4094d378cdbf0f98bdec57d43b5a5e7ff1e50 /cppcheck.sh | |
parent | a0d391b4b13420c059f5adb43c3fd1c09f41d6ab (diff) |
more cleanup identified by cppcheck
Diffstat (limited to 'cppcheck.sh')
-rwxr-xr-x | cppcheck.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cppcheck.sh b/cppcheck.sh index 33a170d673..bfe15d24ce 100755 --- a/cppcheck.sh +++ b/cppcheck.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +# echo >>/tmp/cppcheck.log "cppcheck ${*}" + cppcheck=$(which cppcheck 2>/dev/null || command -v cppcheck 2>/dev/null) [ -z "${cppcheck}" ] && echo >&2 "install cppcheck." && exit 1 @@ -27,4 +29,5 @@ shift --force \ --enable=warning,performance,portability,information \ --suppress="unusedFunction:*" \ + --suppress="nullPointerRedundantCheck:*" \ "${file}" "${@}" |