Mercurial > vim
comparison src/os_unix.c @ 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 | e753954c86e2 |
children | d0ddf7ba1630 |
comparison
equal
deleted
inserted
replaced
2073:5bedef935ce3 | 2074:1bb06e6512a2 |
---|---|
1469 x_IOerror_check(dpy) | 1469 x_IOerror_check(dpy) |
1470 Display *dpy UNUSED; | 1470 Display *dpy UNUSED; |
1471 { | 1471 { |
1472 /* This function should not return, it causes exit(). Longjump instead. */ | 1472 /* This function should not return, it causes exit(). Longjump instead. */ |
1473 LONGJMP(lc_jump_env, 1); | 1473 LONGJMP(lc_jump_env, 1); |
1474 # ifdef VMS | |
1475 return 0; /* avoid the compiler complains about missing return value */ | |
1476 # endif | |
1474 } | 1477 } |
1475 # endif | 1478 # endif |
1476 | 1479 |
1477 /* | 1480 /* |
1478 * An X IO Error handler, used to catch terminal errors. | 1481 * An X IO Error handler, used to catch terminal errors. |
1488 x11_display = NULL; | 1491 x11_display = NULL; |
1489 xterm_Shell = (Widget)0; | 1492 xterm_Shell = (Widget)0; |
1490 | 1493 |
1491 /* This function should not return, it causes exit(). Longjump instead. */ | 1494 /* This function should not return, it causes exit(). Longjump instead. */ |
1492 LONGJMP(x_jump_env, 1); | 1495 LONGJMP(x_jump_env, 1); |
1496 # ifdef VMS | |
1497 return 0; /* avoid the compiler complains about missing return value */ | |
1498 # endif | |
1493 } | 1499 } |
1494 #endif | 1500 #endif |
1495 | 1501 |
1496 /* | 1502 /* |
1497 * Return TRUE when connection to the X server is desired. | 1503 * Return TRUE when connection to the X server is desired. |