mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.2.358
Problem: Compiler warnings on VMS. (Zoltan Arpadffy) Solution: Pass array itself instead its address. Return a value.
This commit is contained in:
@@ -6190,7 +6190,7 @@ gui_mch_draw_string(int row, int col, char_u *s, int len, int flags)
|
|||||||
int pcc[MAX_MCO];
|
int pcc[MAX_MCO];
|
||||||
|
|
||||||
/* TODO: use the composing characters */
|
/* TODO: use the composing characters */
|
||||||
c = utfc_ptr2char_len(p, &pcc, len - (p - s));
|
c = utfc_ptr2char_len(p, pcc, len - (p - s));
|
||||||
if (c >= 0x10000) /* show chars > 0xffff as ? */
|
if (c >= 0x10000) /* show chars > 0xffff as ? */
|
||||||
c = 0xbf;
|
c = 0xbf;
|
||||||
buf[textlen].byte1 = c >> 8;
|
buf[textlen].byte1 = c >> 8;
|
||||||
|
@@ -1471,6 +1471,9 @@ x_IOerror_check(dpy)
|
|||||||
{
|
{
|
||||||
/* This function should not return, it causes exit(). Longjump instead. */
|
/* This function should not return, it causes exit(). Longjump instead. */
|
||||||
LONGJMP(lc_jump_env, 1);
|
LONGJMP(lc_jump_env, 1);
|
||||||
|
# ifdef VMS
|
||||||
|
return 0; /* avoid the compiler complains about missing return value */
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
@@ -1490,6 +1493,9 @@ x_IOerror_handler(dpy)
|
|||||||
|
|
||||||
/* This function should not return, it causes exit(). Longjump instead. */
|
/* This function should not return, it causes exit(). Longjump instead. */
|
||||||
LONGJMP(x_jump_env, 1);
|
LONGJMP(x_jump_env, 1);
|
||||||
|
# ifdef VMS
|
||||||
|
return 0; /* avoid the compiler complains about missing return value */
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -681,6 +681,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
358,
|
||||||
/**/
|
/**/
|
||||||
357,
|
357,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user