changeset 6763:e026e4f106a5 v7.4.703

patch 7.4.703 Problem: Compiler warning for start_dir unused when building unittests. Solution: Move start_dir inside the #ifdef.
author Bram Moolenaar <bram@vim.org>
date Fri, 17 Apr 2015 22:08:16 +0200
parents a8cacc29153a
children cf5d9c1e4c8a
files src/main.c src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -147,10 +147,11 @@ static char *(main_errors[]) =
 #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
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    703,
+/**/
     702,
 /**/
     701,