]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0540: building unit tests fails v8.0.0540
authorBram Moolenaar <Bram@vim.org>
Sun, 2 Apr 2017 16:19:53 +0000 (18:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 2 Apr 2017 16:19:53 +0000 (18:19 +0200)
Problem:    Building unit tests fails.
Solution:   Move params outside of #ifdef.

src/main.c
src/message_test.c
src/version.c

index e3db0b2a916ebe072488aa468b2430e13f945d02..6d59b09ba4a66bdefdfa8424c07e19a070f73591 100644 (file)
@@ -89,15 +89,16 @@ static char *(main_errors[]) =
 };
 
 #ifndef PROTO          /* don't want a prototype for main() */
+
+/* Various parameters passed between main() and other functions. */
+static mparm_T params;
+
 #ifndef NO_VIM_MAIN    /* skip this for unittests */
 
 static char_u *start_dir = NULL;       /* current working dir on startup */
 
 static int has_dash_c_arg = FALSE;
 
-/* Various parameters passed between main() and other functions. */
-static mparm_T params;
-
     int
 # ifdef VIMDLL
 _export
index e5ecf264176118cad29c45d1e9699bada8994b63..55ca814107ae602f2399ed4bb577946e21e1c68a 100644 (file)
@@ -96,8 +96,6 @@ test_trunc_string(void)
     int
 main(int argc, char **argv)
 {
-    mparm_T params;
-
     vim_memset(&params, 0, sizeof(params));
     params.argc = argc;
     params.argv = argv;
index 3a6070b9873e629a75757a5d6c825e4337779435..5958550f19249063697b65e44d9174d617ba0dac 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    540,
 /**/
     539,
 /**/