Skip to content

Commit 68cbb14

Browse files
committed
patch 8.1.1304: MS-Windows: compiler warning for unused value
Problem: MS-Windows: compiler warning for unused value. Solution: Adjust #ifdefs. (Ken Takata, closes #4363)
1 parent be0a259 commit 68cbb14

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/gui.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ gui_start(char_u *arg UNUSED)
6969
{
7070
char_u *old_term;
7171
static int recursive = 0;
72-
#ifdef GUI_MAY_SPAWN
72+
#if defined(GUI_MAY_SPAWN) && defined(EXPERIMENTAL_GUI_CMD)
7373
char *msg = NULL;
7474
#endif
7575

@@ -113,7 +113,10 @@ gui_start(char_u *arg UNUSED)
113113
# endif
114114
)
115115
{
116-
msg = gui_mch_do_spawn(arg);
116+
# ifdef EXPERIMENTAL_GUI_CMD
117+
msg =
118+
# endif
119+
gui_mch_do_spawn(arg);
117120
}
118121
else
119122
#endif

src/version.c

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

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1304,
770772
/**/
771773
1303,
772774
/**/

0 commit comments

Comments
 (0)