[Spice-devel] [PATCH xf86-video-qxl 2/5] spiceqxl_display: add noreturn attribute (silence clang warning)

Alon Levy alevy at redhat.com
Thu Oct 17 10:27:45 CEST 2013


Signed-off-by: Alon Levy <alevy at redhat.com>
---
 src/spiceqxl_display.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/spiceqxl_display.c b/src/spiceqxl_display.c
index 9c42d84..3acbb1c 100644
--- a/src/spiceqxl_display.c
+++ b/src/spiceqxl_display.c
@@ -287,7 +287,8 @@ static int interface_req_cursor_notification(QXLInstance *sin)
 }
 
 /* called from spice server thread context */
-static void interface_notify_update(QXLInstance *sin, uint32_t update_id)
+static void __attribute__ ((__noreturn__))
+    interface_notify_update(QXLInstance *sin, uint32_t update_id)
 {
     fprintf(stderr, "%s: abort()\n", __FUNCTION__);
     abort();
-- 
1.8.3.1



More information about the Spice-devel mailing list