diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-04-17 22:08:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-04-17 22:08:16 +0200 |
commit | f9bde2b152d3344c694c5e1ca629156b34f1a627 (patch) | |
tree | bad351455e12d8e77d3be6bb12b0a10c72461662 /src/main.c | |
parent | d39a7512804f860a20319c181613771a79a9ea4e (diff) | |
download | vim-git-f9bde2b152d3344c694c5e1ca629156b34f1a627.tar.gz |
patch 7.4.703v7.4.703
Problem: Compiler warning for start_dir unused when building unittests.
Solution: Move start_dir inside the #ifdef.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |