Skip to content

Commit

Permalink
Fix make lint target
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
behlendorf committed Sep 9, 2016
1 parent 8516203 commit 89f6751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 89f6751

Please sign in to comment.