From f9bde2b152d3344c694c5e1ca629156b34f1a627 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 17 Apr 2015 22:08:16 +0200 Subject: patch 7.4.703 Problem: Compiler warning for start_dir unused when building unittests. Solution: Move start_dir inside the #ifdef. --- src/main.c | 5 +++-- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 72f70b714..d20c4b095 100644 --- 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 diff --git a/src/version.c b/src/version.c index 0f02ea8ff..d211340a7 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 703, /**/ 702, /**/ -- cgit v1.2.1