mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-08 21:44:47 +08:00
Merge pull request #284 from EinfachToll/fix-gcc-command
Tell gcc to use C, not C++, when linting C source files
This commit is contained in:
@@ -10,7 +10,7 @@ if !exists('g:ale_c_gcc_options')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! ale_linters#c#gcc#GetCommand(buffer) abort
|
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 . ' -'
|
\ . g:ale_c_gcc_options . ' -'
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user