changeset 18997:6b2d93436388 v8.2.0059

patch 8.2.0059: compiler warnings for unused variables in small build Commit: https://github.com/vim/vim/commit/85b0957616e9d9d0edef44baa9fa6c6a2037782d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 30 10:57:00 2019 +0100 patch 8.2.0059: compiler warnings for unused variables in small build Problem: Compiler warnings for unused variables in small build. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Dec 2019 11:00:04 +0100
parents bcceb28040ef
children 3aab88c148ef
files src/scriptfile.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -95,11 +95,13 @@ estack_pop(void)
     char_u *
 estack_sfile(void)
 {
+    estack_T	*entry;
+#ifdef FEAT_EVAL
     int		len;
     int		idx;
-    estack_T	*entry;
     char	*res;
     int		done;
+#endif
 
     entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1;
     if (entry->es_name == NULL)
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    59,
+/**/
     58,
 /**/
     57,