summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-02-01 10:46:06 +0000
committerGitHub <noreply@github.com>2017-02-01 10:46:06 +0000
commit512b6e00d9379700d65dbf7701dc9631f62866d8 (patch)
treeba8efcdef335f3e7cb0433e090c418e9a8c3ca26
parenta1458e9c072e1cfc425591b7616a291e99778753 (diff)
parente8123b3d5ede8da87fedc748f2712e2de1b24af8 (diff)
downloadale-512b6e00d9379700d65dbf7701dc9631f62866d8.zip
Merge pull request #284 from EinfachToll/fix-gcc-command
Tell gcc to use C, not C++, when linting C source files
-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