Patch 8.1.0787
Problem: Compiler warning for unused function. (Tony Mechelynck)
Solution: Tune #ifdef around setjmp functions.
Files: src/os_unix.c
*** ../vim-8.1.0786/src/os_unix.c 2019-01-20 15:30:36.893328693 +0100
--- src/os_unix.c 2019-01-20 18:36:56.137592218 +0100
***************
*** 980,986 ****
}
#endif
! #if defined(HAVE_SETJMP_H) || defined(PROTO)
// argument to SETJMP()
static JMP_BUF lc_jump_env;
--- 980,990 ----
}
#endif
! #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;
***************
*** 7490,7498 ****
if (app_context != NULL && xterm_Shell == (Widget)0)
{
int (*oldhandler)();
! #if defined(HAVE_SETJMP_H)
int (*oldIOhandler)();
! #endif
# ifdef ELAPSED_FUNC
elapsed_T start_tv;
--- 7494,7502 ----
if (app_context != NULL && xterm_Shell == (Widget)0)
{
int (*oldhandler)();
! # if defined(HAVE_SETJMP_H)
int (*oldIOhandler)();
! # endif
# ifdef ELAPSED_FUNC
elapsed_T start_tv;
***************
*** 7503,7509 ****
/* Ignore X errors while opening the display */
oldhandler = XSetErrorHandler(x_error_check);
! #if defined(HAVE_SETJMP_H)
/* Ignore X IO errors while opening the display */
oldIOhandler = XSetIOErrorHandler(x_IOerror_check);
mch_startjmp();
--- 7507,7513 ----
/* Ignore X errors while opening the display */
oldhandler = XSetErrorHandler(x_error_check);
! # if defined(HAVE_SETJMP_H)
/* Ignore X IO errors while opening the display */
oldIOhandler = XSetIOErrorHandler(x_IOerror_check);
mch_startjmp();
***************
*** 7513,7533 ****
xterm_dpy = NULL;
}
else
! #endif
{
xterm_dpy = XtOpenDisplay(app_context, xterm_display,
"vim_xterm", "Vim_xterm", NULL, 0, &z, &strp);
if (xterm_dpy != NULL)
xterm_dpy_retry_count = 0;
! #if defined(HAVE_SETJMP_H)
mch_endjmp();
! #endif
}
! #if defined(HAVE_SETJMP_H)
/* Now handle X IO errors normally. */
(void)XSetIOErrorHandler(oldIOhandler);
! #endif
/* Now handle X errors normally. */
(void)XSetErrorHandler(oldhandler);
--- 7517,7537 ----
xterm_dpy = NULL;
}
else
! # endif
{
xterm_dpy = XtOpenDisplay(app_context, xterm_display,
"vim_xterm", "Vim_xterm", NULL, 0, &z, &strp);
if (xterm_dpy != NULL)
xterm_dpy_retry_count = 0;
! # if defined(HAVE_SETJMP_H)
mch_endjmp();
! # endif
}
! # if defined(HAVE_SETJMP_H)
/* Now handle X IO errors normally. */
(void)XSetIOErrorHandler(oldIOhandler);
! # endif
/* Now handle X errors normally. */
(void)XSetErrorHandler(oldhandler);
*** ../vim-8.1.0786/src/version.c 2019-01-20 18:25:50.313911236 +0100
--- src/version.c 2019-01-20 18:37:56.629192312 +0100
***************
*** 793,794 ****
--- 793,796 ----
{ /* Add new patch number below this line */
+ /**/
+ 787,
/**/
--
ARTHUR: This new learning amazes me, Sir Bedevere. Explain again how sheep's
bladders may be employed to prevent earthquakes.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.