changeset 16602:47a8b29f289c v8.1.1304

patch 8.1.1304: MS-Windows: compiler warning for unused value commit https://github.com/vim/vim/commit/68cbb14bae1013702270b25e886b5ee09e07575a Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 9 14:14:42 2019 +0200 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 https://github.com/vim/vim/issues/4363)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 May 2019 14:15:07 +0200
parents 606aa25840e7
children 83e535d7e403
files src/gui.c src/version.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1304,
+/**/
     1303,
 /**/
     1302,