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.
diff --git a/src/scriptfile.c b/src/scriptfile.c
index dccf735..783e6bc 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -95,11 +95,13 @@
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)