summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-16 14:20:45 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-16 14:20:45 +0200
commitbfafb4c4a01db3f8c508716daf689e0dfe92b649 (patch)
treebd0d60de61e3fe5946242c30cb9822909addca17
parent269f595f9eef584937e7eae70fde68cdd7da5bcf (diff)
downloadvim-git-bfafb4c4a01db3f8c508716daf689e0dfe92b649.tar.gz
patch 7.4.2047v7.4.2047
Problem: Compiler warning for initializing a struct. Solution: Initialize in another way. (Anton Lindqvist)
-rw-r--r--src/quickfix.c4
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 4be1d91cb..689897554 100644
--- 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.
diff --git a/src/version.c b/src/version.c
index 8b05a3df6..fc767bb22 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2047,
+/**/
2046,
/**/
2045,