Skip to content

Commit dbbc001

Browse files
brammooldouglaskayama
authored andcommitted
patch 7.4.703 Problem: Compiler warning for start_dir unused when building unittests. Solution: Move start_dir inside the #ifdef.
1 parent d6dd562 commit dbbc001

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,11 @@ static char *(main_errors[]) =
147147
#define ME_INVALID_ARG 5
148148
};
149149

150-
static char_u *start_dir = NULL; /* current working dir on startup */
151-
152150
#ifndef PROTO /* don't want a prototype for main() */
153151
#ifndef NO_VIM_MAIN /* skip this for unittests */
152+
153+
static char_u *start_dir = NULL; /* current working dir on startup */
154+
154155
int
155156
# ifdef VIMDLL
156157
_export

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
703,
759761
/**/
760762
702,
761763
/**/

0 commit comments

Comments
 (0)