]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.703 v7.4.703
authorBram Moolenaar <Bram@vim.org>
Fri, 17 Apr 2015 20:08:16 +0000 (22:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 17 Apr 2015 20:08:16 +0000 (22:08 +0200)
Problem:    Compiler warning for start_dir unused when building unittests.
Solution:   Move start_dir inside the #ifdef.

src/main.c
src/version.c

index 72f70b714d4952b0bf50a23c5be6629117a8c488..d20c4b09582fa3cb104a05d17cc5afaad66b4198 100644 (file)
@@ -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
index 0f02ea8ff065af9f239134cee209c8e1159680ac..d211340a7e50f8359f6673be48797d514ce859f8 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    703,
 /**/
     702,
 /**/