diff options
Diffstat (limited to 'hw/kdrive/ephyr/hostx.c')
-rw-r--r-- | hw/kdrive/ephyr/hostx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 47a6681c4..ebe4e52ed 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c | |||
@@ -332,6 +332,11 @@ hostx_set_title (char *title) | |||
332 | ephyrTitle = title; | 332 | ephyrTitle = title; |
333 | } | 333 | } |
334 | 334 | ||
335 | #ifdef __SUNPRO_C | ||
336 | /* prevent "Function has no return statement" error for x_io_error_handler */ | ||
337 | #pragma does_not_return(exit) | ||
338 | #endif | ||
339 | |||
335 | static int _X_NORETURN | 340 | static int _X_NORETURN |
336 | x_io_error_handler (Display *dpy) { | 341 | x_io_error_handler (Display *dpy) { |
337 | ErrorF("Lost connection to X server: %s\n", strerror(errno)); | 342 | ErrorF("Lost connection to X server: %s\n", strerror(errno)); |