]> granicus.if.org Git - zfs/commitdiff
Fix make lint target
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Sep 2016 18:01:22 +0000 (11:01 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 9 Sep 2016 18:24:54 +0000 (11:24 -0700)
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 <behlendorf1@llnl.gov>
Makefile.am

index b0d23d00c3760b552af4ab84f1246f30755831e7..fe4285b3fd6231d306bd177d686d60f3614dc828 100644 (file)
@@ -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: