Mercurial > vim
changeset 2074:1bb06e6512a2 v7.2.358
updated for version 7.2.358
Problem: Compiler warnings on VMS. (Zoltan Arpadffy)
Solution: Pass array itself instead its address. Return a value.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Thu, 11 Feb 2010 18:19:38 +0100 |
parents | 5bedef935ce3 |
children | 903fcd726d90 |
files | src/gui_gtk_x11.c src/os_unix.c src/version.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -6190,7 +6190,7 @@ gui_mch_draw_string(int row, int col, ch int pcc[MAX_MCO]; /* 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 ? */ c = 0xbf; buf[textlen].byte1 = c >> 8;
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -1471,6 +1471,9 @@ x_IOerror_check(dpy) { /* This function should not return, it causes exit(). Longjump instead. */ LONGJMP(lc_jump_env, 1); +# ifdef VMS + return 0; /* avoid the compiler complains about missing return value */ +# endif } # endif @@ -1490,6 +1493,9 @@ x_IOerror_handler(dpy) /* This function should not return, it causes exit(). Longjump instead. */ LONGJMP(x_jump_env, 1); +# ifdef VMS + return 0; /* avoid the compiler complains about missing return value */ +# endif } #endif