]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test-segfault: mark exception_handler as NORETURN
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 10 Oct 2016 15:13:58 +0000 (16:13 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 13 Oct 2016 21:44:13 +0000 (22:44 +0100)
It calls ExitProcess(), which is correctly detected as not returning.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
test/test-segfault.c

index cd80db6d2a6b7350dad2a542071d7a78a0fe02bf..8517dd6c22b666406bba4a369b75f97629d7e250 100644 (file)
@@ -17,8 +17,9 @@
 #include <stdio.h>
 #include <windows.h>
 
-int
-exception_handler(LPEXCEPTION_POINTERS p);
+#include <dbus/dbus-macros.h>
+
+int exception_handler (LPEXCEPTION_POINTERS p) _DBUS_GNUC_NORETURN;
 
 /* Explicit Windows exception handlers needed to supress OS popups */
 int