Mercurial > vim
comparison src/quickfix.c @ 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 | 50697f3b49d6 |
children | 26da1efa9e46 |
comparison
equal
deleted
inserted
replaced
9533:9f921133ee90 | 9534:340106787852 |
---|---|
790 char_u *namebuf; | 790 char_u *namebuf; |
791 char_u *errmsg; | 791 char_u *errmsg; |
792 int errmsglen; | 792 int errmsglen; |
793 char_u *pattern; | 793 char_u *pattern; |
794 qfstate_T state = {NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, | 794 qfstate_T state = {NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, |
795 NULL, lnumfirst, lnumlast}; | 795 NULL, 0, 0}; |
796 int col = 0; | 796 int col = 0; |
797 char_u use_viscol = FALSE; | 797 char_u use_viscol = FALSE; |
798 int type = 0; | 798 int type = 0; |
799 int valid; | 799 int valid; |
800 long lnum = 0L; | 800 long lnum = 0L; |
901 else if (tv->v_type == VAR_LIST) | 901 else if (tv->v_type == VAR_LIST) |
902 state.p_li = tv->vval.v_list->lv_first; | 902 state.p_li = tv->vval.v_list->lv_first; |
903 state.tv = tv; | 903 state.tv = tv; |
904 } | 904 } |
905 state.buf = buf; | 905 state.buf = buf; |
906 state.buflnum = lnumfirst; | |
907 state.lnumlast = lnumlast; | |
906 | 908 |
907 /* | 909 /* |
908 * Read the lines in the error file one by one. | 910 * Read the lines in the error file one by one. |
909 * Try to recognize one of the error formats in each line. | 911 * Try to recognize one of the error formats in each line. |
910 */ | 912 */ |