]> granicus.if.org Git - vim/commitdiff
patch 8.1.1304: MS-Windows: compiler warning for unused value v8.1.1304
authorBram Moolenaar <Bram@vim.org>
Thu, 9 May 2019 12:14:42 +0000 (14:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 May 2019 12:14:42 +0000 (14:14 +0200)
Problem:    MS-Windows: compiler warning for unused value.
Solution:   Adjust #ifdefs. (Ken Takata, closes #4363)

src/gui.c
src/version.c

index 471202bf477e64881a77e6796222d7d5e1b69b12..da7284f937c2e32f058aa8f240c30da69fd9d954 100644 (file)
--- 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
index 8aef9ddaf8db68d1f7ccbbf8a5a9e91f73a55346..7715410bd861916fba20af87bec949954787270f 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1304,
 /**/
     1303,
 /**/