From e8123b3d5ede8da87fedc748f2712e2de1b24af8 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Wed, 1 Feb 2017 11:22:21 +0100 Subject: [PATCH] Tell gcc to use C, not C++, when linting C source files A regression bug introduced with PR #232 Ref #278 --- ale_linters/c/gcc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/c/gcc.vim b/ale_linters/c/gcc.vim index 583f4fa..594c5c8 100644 --- a/ale_linters/c/gcc.vim +++ b/ale_linters/c/gcc.vim @@ -10,7 +10,7 @@ if !exists('g:ale_c_gcc_options') endif function! ale_linters#c#gcc#GetCommand(buffer) abort - return 'gcc -S -x c++ -fsyntax-only ' + return 'gcc -S -x c -fsyntax-only ' \ . g:ale_c_gcc_options . ' -' endfunction