diff --git a/syntax_checkers/c/gcc.vim b/syntax_checkers/c/gcc.vim index 3cca035f..0d4885bd 100644 --- a/syntax_checkers/c/gcc.vim +++ b/syntax_checkers/c/gcc.vim @@ -50,6 +50,7 @@ function! SyntaxCheckers_c_gcc_GetLocList() \ '%f:%l: %tarning: %m,'. \ '%f:%l: %m', \ 'makeprg_main': '-x c -fsyntax-only', + \ 'makeprg_headers': '-x c', \ 'headers_pattern': '\.h$' }) endfunction diff --git a/syntax_checkers/cpp/gcc.vim b/syntax_checkers/cpp/gcc.vim index 930dc4ab..7f7e44c5 100644 --- a/syntax_checkers/cpp/gcc.vim +++ b/syntax_checkers/cpp/gcc.vim @@ -45,6 +45,7 @@ function! SyntaxCheckers_cpp_gcc_GetLocList() \ '%f:%l: %tarning: %m,'. \ '%f:%l: %m', \ 'makeprg_main': '-x c++ -fsyntax-only', + \ 'makeprg_headers': '-x c++', \ 'headers_pattern': '\.\(h\|hpp\|hh\)$' }) endfunction diff --git a/syntax_checkers/d/dmd.vim b/syntax_checkers/d/dmd.vim index 7415f78c..5c66e7a7 100644 --- a/syntax_checkers/d/dmd.vim +++ b/syntax_checkers/d/dmd.vim @@ -44,7 +44,7 @@ function! SyntaxCheckers_d_dmd_GetLocList() \ 'errorformat': \ '%-G%f:%s:,%f(%l): %m,' . \ '%f:%l: %m', - \ 'makeprg_main': '-c', + \ 'makeprg_main': '-c ' . syntastic#c#NullOutput('d'), \ 'headers_pattern': '\.di$' }) endfunction diff --git a/syntax_checkers/nasm/nasm.vim b/syntax_checkers/nasm/nasm.vim index 0cf0b51a..61a2b4ad 100644 --- a/syntax_checkers/nasm/nasm.vim +++ b/syntax_checkers/nasm/nasm.vim @@ -19,15 +19,10 @@ function! SyntaxCheckers_nasm_nasm_IsAvailable() endfunction function! SyntaxCheckers_nasm_nasm_GetLocList() - if has("win32") - let outfile="NUL" - else - let outfile="/dev/null" - endif let wd = shellescape(expand("%:p:h") . "/") let makeprg = syntastic#makeprg#build({ \ 'exe': 'nasm', - \ 'args': '-X gnu -f elf -I ' . wd . ' -o ' . outfile, + \ 'args': '-X gnu -f elf -I ' . wd . ' ' . syntastic#c#NullOutput('nasm'), \ 'subchecker': 'nasm' }) let errorformat = '%f:%l: %t%*[^:]: %m' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })