From aaacb92ce29664974f1f452b8d683cea4c0c4d46 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 11 Sep 2013 11:19:42 -0400 Subject: [PATCH] Correct expected return values for checkpatch checker checkpatch.pl will return 1 when warnings or errors are found, at least in the current -next tree. This commit makes the checkpatch checker work again. --- syntax_checkers/c/checkpatch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/c/checkpatch.vim b/syntax_checkers/c/checkpatch.vim index 0d579bfd..f16a7c14 100644 --- a/syntax_checkers/c/checkpatch.vim +++ b/syntax_checkers/c/checkpatch.vim @@ -39,7 +39,7 @@ function! SyntaxCheckers_c_checkpatch_GetLocList() return SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat, - \ 'returns': [0], + \ 'returns': [0, 1], \ 'subtype': 'Style' }) endfunction