Mercurial > vim
diff src/gui.c @ 31006:d63bb3fa9939 v9.0.0838
patch 9.0.0838: compiler warnings for unused variables
Commit: https://github.com/vim/vim/commit/a25f718431ae001242a6a8b74733ee7685ccf07d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 6 11:27:46 2022 +0000
patch 9.0.0838: compiler warnings for unused variables
Problem: Compiler warnings for unused variables.
Solution: Addjust #ifdef and remove unused variables. (John Marriott)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Nov 2022 12:30:05 +0100 |
parents | 101f08b49ed3 |
children | 9716c7d24c12 |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -64,7 +64,9 @@ static int disable_flush = 0; // If > 0, gui_start(char_u *arg UNUSED) { char_u *old_term; +#ifdef GUI_MAY_FORK static int recursive = 0; +#endif #if defined(GUI_MAY_SPAWN) && defined(EXPERIMENTAL_GUI_CMD) char *msg = NULL; #endif @@ -76,9 +78,8 @@ gui_start(char_u *arg UNUSED) cursor_on(); // needed for ":gui" in .vimrc full_screen = FALSE; +#ifdef GUI_MAY_FORK ++recursive; - -#ifdef GUI_MAY_FORK /* * Quit the current process and continue in the child. * Makes "gvim file" disconnect from the shell it was started in. @@ -153,7 +154,9 @@ gui_start(char_u *arg UNUSED) gui_mch_update(); apply_autocmds(gui.in_use ? EVENT_GUIENTER : EVENT_GUIFAILED, NULL, NULL, FALSE, curbuf); +#ifdef GUI_MAY_FORK --recursive; +#endif } /*