summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorEinfachToll <istjanichtzufassen@googlemail.com>2017-02-01 11:22:21 +0100
committerEinfachToll <istjanichtzufassen@googlemail.com>2017-02-01 11:22:21 +0100
commite8123b3d5ede8da87fedc748f2712e2de1b24af8 (patch)
treeba8efcdef335f3e7cb0433e090c418e9a8c3ca26 /ale_linters
parenta1458e9c072e1cfc425591b7616a291e99778753 (diff)
downloadale-e8123b3d5ede8da87fedc748f2712e2de1b24af8.zip
Tell gcc to use C, not C++, when linting C source files
A regression bug introduced with PR #232 Ref #278
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/c/gcc.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/c/gcc.vim b/ale_linters/c/gcc.vim
index 583f4fab..594c5c83 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