]> granicus.if.org Git - vim/commitdiff
patch 8.2.0059: compiler warnings for unused variables in small build v8.2.0059
authorBram Moolenaar <Bram@vim.org>
Mon, 30 Dec 2019 09:57:00 +0000 (10:57 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Dec 2019 09:57:00 +0000 (10:57 +0100)
Problem:    Compiler warnings for unused variables in small build. (Tony
            Mechelynck)
Solution:   Add #ifdef.

src/scriptfile.c
src/version.c

index dccf7355952a54ee9e06863e377b971c908227f5..783e6bc757568ffc4b2bec34c97c25914cff7910 100644 (file)
@@ -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)
index 5c27a504a08810b2bcb3a5db90a08a69ba20c592..aeb1920b9f8a50f4e9c684ab505669499b4ef902 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    59,
 /**/
     58,
 /**/