0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.0787: compiler warning for unused function

Problem:    Compiler warning for unused function. (Tony Mechelynck)
Solution:   Tune #ifdef around setjmp functions.
This commit is contained in:
Bram Moolenaar
2019-01-20 18:39:30 +01:00
parent 10772307c4
commit edce7420d0
2 changed files with 15 additions and 9 deletions

View File

@@ -980,7 +980,11 @@ sig_alarm SIGDEFARG(sigarg)
}
#endif
#if defined(HAVE_SETJMP_H) || defined(PROTO)
#if (defined(HAVE_SETJMP_H) \
&& ((defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) \
|| defined(FEAT_LIBCALL))) \
|| defined(PROTO)
// argument to SETJMP()
static JMP_BUF lc_jump_env;

View File

@@ -791,6 +791,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
787,
/**/
786,
/**/