]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.1052: build failure with older compilers v8.2.1052
authorBram Moolenaar <Bram@vim.org>
Wed, 24 Jun 2020 21:02:40 +0000 (23:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 24 Jun 2020 21:02:40 +0000 (23:02 +0200)
Problem:    Build failure with older compilers.
Solution:   Move declaration to start of block.

src/eval.c
src/version.c

index 79944c8ca5e7c84b7b67caf59c2e3e8ebfaa9751..0402b36385adb20a3ec44270e339e3360a8b328a 100644 (file)
@@ -1904,6 +1904,7 @@ eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg)
        typval_T        var2;
        evalarg_T       nested_evalarg;
        int             orig_flags;
+       int             evaluate;
 
        if (evalarg == NULL)
        {
@@ -1916,8 +1917,7 @@ eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg)
            orig_flags = evalarg->eval_flags;
        }
 
-       int evaluate = nested_evalarg.eval_flags & EVAL_EVALUATE;
-
+       evaluate = nested_evalarg.eval_flags & EVAL_EVALUATE;
        result = FALSE;
        if (evaluate)
        {
index 36da6200197bac8656184987e92d6c77d808c46e..b85dc2936d291c2b623e2b6ea2d6164f57c2fdba 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1052,
 /**/
     1051,
 /**/