From 7b707fff56209d8997a2d52dde6f38e67be56c31 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 12 May 2013 05:54:33 +0000 Subject: correct assert for driver evaluation, also add asserts for listbase functions when the list is NULL, and use noreturn attribute for jpeg_error. --- source/blender/imbuf/intern/jpeg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/jpeg.c b/source/blender/imbuf/intern/jpeg.c index 1ace364482f..9bb625a64b0 100644 --- a/source/blender/imbuf/intern/jpeg.c +++ b/source/blender/imbuf/intern/jpeg.c @@ -59,7 +59,11 @@ #define IS_maxjpg(x) ((x->ftype & JPG_MSK) == JPG_MAX) /* the types are from the jpeg lib */ -static void jpeg_error(j_common_ptr cinfo); +static void jpeg_error(j_common_ptr cinfo) +#ifdef __GNUC__ +__attribute__((noreturn)); +#endif +; static void init_source(j_decompress_ptr cinfo); static boolean fill_input_buffer(j_decompress_ptr cinfo); static void skip_input_data(j_decompress_ptr cinfo, long num_bytes); -- cgit v1.2.3