diff options
author | w0rp <devw0rp@gmail.com> | 2019-05-20 13:00:32 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-05-20 13:00:32 +0100 |
commit | 5e64acc6abeb61d4a10864b24df763327663f240 (patch) | |
tree | e49da2e872346d8f9bbe15995e285f154d61f47e /autoload | |
parent | 4ee28d312976e463a3373f6170cd5a0cdd1bcf3c (diff) | |
download | ale-5e64acc6abeb61d4a10864b24df763327663f240.zip |
Fix #2512 - Use -o /dev/null for gcc linting
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/c.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/c.vim b/autoload/ale/c.vim index a9289e22..42958d6e 100644 --- a/autoload/ale/c.vim +++ b/autoload/ale/c.vim @@ -194,6 +194,10 @@ function! s:GetLookupFromCompileCommandsFile(compile_commands_file) abort let l:raw_data = [] silent! let l:raw_data = json_decode(join(readfile(a:compile_commands_file), '')) + if type(l:raw_data) isnot v:t_list + let l:raw_data = [] + endif + let l:file_lookup = {} let l:dir_lookup = {} |