Checker nvcc: mark warning messages as such.

This commit is contained in:
LCD 47 2017-02-15 13:51:32 +02:00
parent f660d1074f
commit 59b98a655f

View File

@ -63,7 +63,17 @@ function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
\ '%DMaking %*\a in %f,'.
\ '%f|%l| %m'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'defaults': {'type': 'E'} })
for e in loclist
if e['text'] =~? '\m^warning:'
let e['text'] = substitute(e['text'], '\m\c^warning:\s*', '', '')
let e['type'] = 'W'
endif
endfor
if dummy !=# ''
call delete(dummy)