Mercurial > vim
diff src/gui.c @ 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 | 7ae2396cef62 |
children | b52ea9c5f1db |
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