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:
@@ -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}" "${@}"
|
||||
|
||||
Reference in New Issue
Block a user