summaryrefslogtreecommitdiff
path: root/fitz/base_error.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-03-10 11:47:52 -0400
committerRobin Watts <robin.watts@artifex.com>2013-03-20 11:10:12 +0000
commit9d3b728a5f3664161fee1913a0d04ff65a752740 (patch)
treefba4eff63b8463c7b5b1f074888f5fec6d7828ad /fitz/base_error.c
parent9b439089b23139e0d0e17e8a54680f9e84e25dc8 (diff)
downloadmupdf-9d3b728a5f3664161fee1913a0d04ff65a752740.tar.xz
Add noreturn attribute to throw/rethrow to help improve compiler warnings.
Diffstat (limited to 'fitz/base_error.c')
-rw-r--r--fitz/base_error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/base_error.c b/fitz/base_error.c
index de41c023..c3c14a1d 100644
--- a/fitz/base_error.c
+++ b/fitz/base_error.c
@@ -72,6 +72,8 @@ void fz_warn(fz_context *ctx, const char *fmt, ...)
* catch region entered with code = 1.
*/
+static void throw(fz_error_context *ex) FZ_NORETURN;
+
static void throw(fz_error_context *ex)
{
if (ex->top >= 0) {