1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00

more cleanup identified by cppcheck

This commit is contained in:
Costa Tsaousis (ktsaou)
2017-12-26 06:47:56 +02:00
parent a0d391b4b1
commit 4ff05c29dc
7 changed files with 17 additions and 7 deletions

View File

@@ -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}" "${@}"