From: Christophe CURIS <[email protected]>

clang is a bit more strict on the attribute usage, so let's comply.

Signed-off-by: Christophe CURIS <[email protected]>
---
 wrlib/load_jpeg.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/wrlib/load_jpeg.c b/wrlib/load_jpeg.c
index 815181b..178d5d9 100644
--- a/wrlib/load_jpeg.c
+++ b/wrlib/load_jpeg.c
@@ -31,6 +31,10 @@
 
 #include <jpeglib.h>
 
+#ifdef HAVE_STDNORETURN
+#include <stdnoreturn.h>
+#endif
+
 #include "wraster.h"
 #include "imgformat.h"
 
@@ -76,7 +80,7 @@ typedef struct my_error_mgr *my_error_ptr;
  * Here's the routine that will replace the standard error_exit method:
  */
 
-static void my_error_exit(j_common_ptr cinfo)
+static noreturn void my_error_exit(j_common_ptr cinfo)
 {
        /* cinfo->err really points to a my_error_mgr struct, so coerce pointer 
*/
        my_error_ptr myerr = (my_error_ptr) cinfo->err;
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to