diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2016-10-10 16:13:58 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2016-10-13 22:44:13 +0100 |
commit | 35cdfc5e76543813366c3f7f050f58681988a904 (patch) | |
tree | 54a0486ccfe3331eef515f6b57cd84d5d20fb523 /test/test-segfault.c | |
parent | 28eb0f9004e214612f68e40bfa08a540a33ab5a6 (diff) | |
download | dbus-35cdfc5e76543813366c3f7f050f58681988a904.tar.gz |
test-segfault: mark exception_handler as NORETURN
It calls ExitProcess(), which is correctly detected as not returning.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'test/test-segfault.c')
-rw-r--r-- | test/test-segfault.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test-segfault.c b/test/test-segfault.c index cd80db6d..8517dd6c 100644 --- a/test/test-segfault.c +++ b/test/test-segfault.c @@ -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 |