From: Brian Behlendorf Date: Fri, 9 Sep 2016 18:01:22 +0000 (-0700) Subject: Fix make lint target X-Git-Tag: zfs-0.7.0-rc2~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89f67518e1c25a586ba2663210ec9791f12f1fba;p=zfs Fix make lint target When errors are detected 'make lint' should return a non-zero error code. The value 2 was chosen to indicate these are warnings and not fatal. Signed-off-by: Brian Behlendorf --- diff --git a/Makefile.am b/Makefile.am index b0d23d00c..fe4285b3f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,7 +59,7 @@ lint: cppcheck cppcheck: @if type cppcheck > /dev/null 2>&1; then \ - cppcheck --quiet --force ${top_srcdir}; \ + cppcheck --quiet --force --error-exitcode=2 ${top_srcdir}; \ fi ctags: