From: Bram Moolenaar Date: Sun, 2 Apr 2017 16:19:53 +0000 (+0200) Subject: patch 8.0.0540: building unit tests fails X-Git-Tag: v8.0.0540 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a604429529ce3d3c97309c7cf6bba8b699f6bfb5;p=thirdparty%2Fvim.git patch 8.0.0540: building unit tests fails Problem: Building unit tests fails. Solution: Move params outside of #ifdef. --- diff --git a/src/main.c b/src/main.c index e3db0b2a91..6d59b09ba4 100644 --- a/src/main.c +++ b/src/main.c @@ -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 diff --git a/src/message_test.c b/src/message_test.c index e5ecf26417..55ca814107 100644 --- a/src/message_test.c +++ b/src/message_test.c @@ -96,8 +96,6 @@ test_trunc_string(void) int main(int argc, char **argv) { - mparm_T params; - vim_memset(¶ms, 0, sizeof(params)); params.argc = argc; params.argv = argv; diff --git a/src/version.c b/src/version.c index 3a6070b987..5958550f19 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 540, /**/ 539, /**/