From 68cbb14bae1013702270b25e886b5ee09e07575a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 9 May 2019 14:14:42 +0200 Subject: [PATCH] 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) --- src/gui.c | 7 +++++-- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gui.c b/src/gui.c index 471202bf4..da7284f93 100644 --- a/src/gui.c +++ b/src/gui.c @@ -69,7 +69,7 @@ gui_start(char_u *arg UNUSED) { char_u *old_term; static int recursive = 0; -#ifdef GUI_MAY_SPAWN +#if defined(GUI_MAY_SPAWN) && defined(EXPERIMENTAL_GUI_CMD) char *msg = NULL; #endif @@ -113,7 +113,10 @@ gui_start(char_u *arg UNUSED) # endif ) { - msg = gui_mch_do_spawn(arg); +# ifdef EXPERIMENTAL_GUI_CMD + msg = +# endif + gui_mch_do_spawn(arg); } else #endif diff --git a/src/version.c b/src/version.c index 8aef9ddaf..7715410bd 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1304, /**/ 1303, /**/ -- 2.50.1