Mercurial > vim
changeset 9534:340106787852 v7.4.2047
commit https://github.com/vim/vim/commit/bfafb4c4a01db3f8c508716daf689e0dfe92b649
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 16 14:20:45 2016 +0200
patch 7.4.2047
Problem: Compiler warning for initializing a struct.
Solution: Initialize in another way. (Anton Lindqvist)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Jul 2016 14:30:06 +0200 |
parents | 9f921133ee90 |
children | eb813d0c8346 |
files | src/quickfix.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -792,7 +792,7 @@ qf_init_ext( int errmsglen; char_u *pattern; qfstate_T state = {NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, - NULL, lnumfirst, lnumlast}; + NULL, 0, 0}; int col = 0; char_u use_viscol = FALSE; int type = 0; @@ -903,6 +903,8 @@ qf_init_ext( state.tv = tv; } state.buf = buf; + state.buflnum = lnumfirst; + state.lnumlast = lnumlast; /* * Read the lines in the error file one by one.