From 2ebc18defae1a0eb0f7387cdb3e8acd8fd477651 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 26 Oct 2012 11:44:58 +1000 Subject: xserver: shut up compiler warning _x_io_error_handler is a noreturn function. Signed-off-by: Peter Hutterer --- src/xserver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xserver.cpp b/src/xserver.cpp index d41fcb4..21fca15 100644 --- a/src/xserver.cpp +++ b/src/xserver.cpp @@ -397,6 +397,7 @@ const std::string& xorg::testing::XServer::GetVersion(void) { return d_->version; } +static int _x_io_error_handler(Display *dpy) _X_NORETURN; static int _x_io_error_handler(Display *dpy) { throw xorg::testing::XIOError("Connection to X Server lost. Possible server crash."); -- cgit v1.2.3