patch 7.4.703
Problem: Compiler warning for start_dir unused when building unittests.
Solution: Move start_dir inside the #ifdef.
diff --git a/src/main.c b/src/main.c
index 72f70b7..d20c4b0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -147,10 +147,11 @@
#define ME_INVALID_ARG 5
};
-static char_u *start_dir = NULL; /* current working dir on startup */
-
#ifndef PROTO /* don't want a prototype for main() */
#ifndef NO_VIM_MAIN /* skip this for unittests */
+
+static char_u *start_dir = NULL; /* current working dir on startup */
+
int
# ifdef VIMDLL
_export