From 05feca29d7d6e2dd76fe7438885058ea64b418dc Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 31 Jan 2013 16:56:29 +0000 Subject: [PATCH] fix a couple of bugs in the c/gcc checker (introduced in the epic refactor) --- syntax_checkers/c/gcc.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/c/gcc.vim b/syntax_checkers/c/gcc.vim index 69c885ce..1dad1dcb 100644 --- a/syntax_checkers/c/gcc.vim +++ b/syntax_checkers/c/gcc.vim @@ -73,9 +73,13 @@ if exists('loaded_gcc_syntax_checker') endif let loaded_gcc_syntax_checker = 1 +if !exists('g:syntastic_c_checker') + let g:syntastic_c_checker = "gcc" +endif + function SyntaxCheckers_c_gcc_IsAvailable() return executable(g:syntastic_c_checker) -endif +endfunction let s:save_cpo = &cpo set cpo&vim