Correct cppcheck errors

ZFS buildbot STYLE builder was moved to Ubuntu 17.04
which has a newer version of cppcheck. Handle the
new cppcheck errors.

uu_* functions removed in this commit were unused
and effectively dead code. They are now retired.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6653
This commit is contained in:
Giuseppe Di Natale
2017-09-19 12:17:29 -07:00
committed by Brian Behlendorf
parent 8e2dddab42
commit 34d00e7aba
6 changed files with 9 additions and 311 deletions
+4 -2
View File
@@ -69,8 +69,10 @@ lint: cppcheck paxcheck
cppcheck:
@if type cppcheck > /dev/null 2>&1; then \
cppcheck --inline-suppr --quiet --force --error-exitcode=2 \
${top_srcdir}; \
cppcheck --quiet --force --error-exitcode=2 \
--suppressions-list=.github/suppressions.txt \
-UHAVE_SSE2 -UHAVE_AVX512F \
${top_srcdir}; \
fi
paxcheck: