From: Bram Moolenaar Date: Sun, 29 Sep 2019 17:02:46 +0000 (+0200) Subject: patch 8.1.2101: write_session_file() often defined but not used X-Git-Tag: v8.1.2101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac02a638b4ae2f019b448bf82bf2667e75ff939e;p=vim patch 8.1.2101: write_session_file() often defined but not used Problem: write_session_file() often defined but not used. Solution: Adjust the #ifdef. (Yegappan Lakshmanan, closes #4998) --- diff --git a/src/session.c b/src/session.c index 7139c5235..41835db26 100644 --- a/src/session.c +++ b/src/session.c @@ -985,7 +985,9 @@ ex_loadview(exarg_T *eap) } } -#if defined(FEAT_GUI) || defined(PROTO) +# if defined(USE_GNOME_SESSION) \ + || (defined(GUI_MAY_SPAWN) && defined(EXPERIMENTAL_GUI_CMD)) \ + || defined(PROTO) /* * Generate a script that can be used to restore the current editing session. * Save the value of v:this_session before running :mksession in order to make diff --git a/src/version.c b/src/version.c index cca023dba..8feb2cc72 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2101, /**/ 2100, /**/