Tell gcc to use C, not C++, when linting C source files

A regression bug introduced with PR #232
Ref #278
This commit is contained in:
EinfachToll 2017-02-01 11:22:21 +01:00
parent a1458e9c07
commit e8123b3d5e
1 changed files with 1 additions and 1 deletions

View File

@ -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