0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.703

Problem:    Compiler warning for start_dir unused when building unittests.
Solution:   Move start_dir inside the #ifdef.
This commit is contained in:
Bram Moolenaar
2015-04-17 22:08:16 +02:00
parent d39a751280
commit f9bde2b152
2 changed files with 5 additions and 2 deletions

View 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