This commit is contained in:
LCD 47 2013-07-12 08:11:20 +03:00
parent dce4c76c21
commit 8aafac34d2

View File

@ -63,7 +63,7 @@ endfunction
function! syntastic#c#GetLocList(filetype, subchecker, options) function! syntastic#c#GetLocList(filetype, subchecker, options)
try try
let flags = s:GetCflags(a:filetype, a:subchecker, a:options) let flags = s:GetCflags(a:filetype, a:subchecker, a:options)
catch /\m\C^syntastic_skip_checks$/ catch /\m\C^Syntastic: skip checks$/
return [] return []
endtry endtry
@ -125,7 +125,7 @@ function! s:GetCflags(ft, ck, opts)
let flags = get(a:opts, 'header_flags', '') . ' -c ' . syntastic#c#NullOutput() let flags = get(a:opts, 'header_flags', '') . ' -c ' . syntastic#c#NullOutput()
else else
" checking headers when check_header is unset: bail out " checking headers when check_header is unset: bail out
throw 'syntastic_skip_checks' throw 'Syntastic: skip checks'
endif endif
else else
let flags = get(a:opts, 'main_flags', '') let flags = get(a:opts, 'main_flags', '')