From ace0c8fc182763ec54c078f495b025fec42143a3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 15 Mar 2016 20:54:22 +0100 Subject: Fix compiler warnings in murun.c and pdf-js.c by tagging rethrow as noreturn. --- source/pdf/js/pdf-js.c | 2 +- source/tools/murun.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/pdf/js/pdf-js.c b/source/pdf/js/pdf-js.c index bc9fcae0..5a885c75 100644 --- a/source/pdf/js/pdf-js.c +++ b/source/pdf/js/pdf-js.c @@ -10,7 +10,7 @@ struct pdf_js_s js_State *imp; }; -static void rethrow(pdf_js *js) +FZ_NORETURN static void rethrow(pdf_js *js) { js_newerror(js->imp, fz_caught_message(js->ctx)); js_throw(js->imp); diff --git a/source/tools/murun.c b/source/tools/murun.c index 5275bfe2..8e99cac5 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -5,7 +5,7 @@ #define PS1 "> " -static void rethrow(js_State *J) +FZ_NORETURN static void rethrow(js_State *J) { js_newerror(J, fz_caught_message(js_getcontext(J))); js_throw(J); -- cgit v1.2.3