diff --git a/syntax_checkers/c/clang_check.vim b/syntax_checkers/c/clang_check.vim index f714eae6..bdae0f44 100644 --- a/syntax_checkers/c/clang_check.vim +++ b/syntax_checkers/c/clang_check.vim @@ -46,7 +46,8 @@ function! SyntaxCheckers_c_clang_check_GetLocList() dict let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat, - \ 'defaults': {'bufnr': bufnr('')} }) + \ 'defaults': {'bufnr': bufnr('')}, + \ 'returns': [0, 1] }) call self.setWantSort(1) diff --git a/syntax_checkers/c/clang_tidy.vim b/syntax_checkers/c/clang_tidy.vim index ec2e2cb1..2aec5458 100644 --- a/syntax_checkers/c/clang_tidy.vim +++ b/syntax_checkers/c/clang_tidy.vim @@ -46,7 +46,8 @@ function! SyntaxCheckers_c_clang_tidy_GetLocList() dict let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat, - \ 'defaults': {'bufnr': bufnr('')} }) + \ 'defaults': {'bufnr': bufnr('')}, + \ 'returns': [0, 1] }) call self.setWantSort(1)