changeset 21002:4852db420162 v8.2.1052

patch 8.2.1052: build failure with older compilers Commit: https://github.com/vim/vim/commit/7acde51832f383f9a6d2e740cd0420b433ea841a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 24 23:02:40 2020 +0200 patch 8.2.1052: build failure with older compilers Problem: Build failure with older compilers. Solution: Move declaration to start of block.
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Jun 2020 23:15:04 +0200
parents c179f9052a2c
children fd0cff8d489b
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -1904,6 +1904,7 @@ eval1(char_u **arg, typval_T *rettv, eva
 	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, eva
 	    orig_flags = evalarg->eval_flags;
 	}
 
-	int evaluate = nested_evalarg.eval_flags & EVAL_EVALUATE;
-
+	evaluate = nested_evalarg.eval_flags & EVAL_EVALUATE;
 	result = FALSE;
 	if (evaluate)
 	{
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1052,
+/**/
     1051,
 /**/
     1050,