summaryrefslogtreecommitdiffstats
path: root/src/gui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-09 14:14:42 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-09 14:14:42 +0200
commit68cbb14bae1013702270b25e886b5ee09e07575a (patch)
tree77a77c529e10499164dd1281d2750f656acedfd4 /src/gui.c
parentbe0a2597ae0d9eb0b8a8a2fc9ae1784faa929844 (diff)
patch 8.1.1304: MS-Windows: compiler warning for unused valuev8.1.1304
Problem: MS-Windows: compiler warning for unused value. Solution: Adjust #ifdefs. (Ken Takata, closes #4363)
Diffstat (limited to 'src/gui.c')
-rw-r--r--src/gui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index 471202bf47..da7284f937 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