]> granicus.if.org Git - vim/commitdiff
patch 7.4.2047 v7.4.2047
authorBram Moolenaar <Bram@vim.org>
Sat, 16 Jul 2016 12:20:45 +0000 (14:20 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 Jul 2016 12:20:45 +0000 (14:20 +0200)
Problem:    Compiler warning for initializing a struct.
Solution:   Initialize in another way. (Anton Lindqvist)

src/quickfix.c
src/version.c

index 4be1d91cbd06745e66219c9ad9e9a67ae53d284b..689897554cdb4de11891c13370380ec06d139145 100644 (file)
@@ -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.
index 8b05a3df6c5cca60f65e4ddd9bc1cfbac7f6d226..fc767bb22b3fdbf8bee3e5fc491eeb2143b7961a 100644 (file)
@@ -758,6 +758,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2047,
 /**/
     2046,
 /**/