From 7667eeb9b5e1b1a63bc6cbe63cfc1d8c695cdcfb Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 21 Dec 2013 11:09:48 +0200 Subject: [PATCH] Fix compilation warning on MS-Windows in my_png_error. src/image.c (fn_png_longjmp) [WINDOWSNT]: Mark the function as having the PNG_NORETURN attribute, to avoid compiler warning in my_png_error. --- src/ChangeLog | 6 ++++++ src/image.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ecde9e1ddea..7ad7991c862 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2013-12-21 Eli Zaretskii + + * image.c (fn_png_longjmp) [WINDOWSNT]: Mark the function as + having the PNG_NORETURN attribute, to avoid compiler warning in + my_png_error. + 2013-12-21 YAMAMOTO Mitsuharu * w32term.h (struct scroll_bar): Remove member `fringe_extended_p'. diff --git a/src/image.c b/src/image.c index 2a216b85dec..c82001166a9 100644 --- a/src/image.c +++ b/src/image.c @@ -5536,7 +5536,7 @@ DEF_IMGLIB_FN (void, png_read_end, (png_structp, png_infop)); DEF_IMGLIB_FN (void, png_error, (png_structp, png_const_charp)); #if (PNG_LIBPNG_VER >= 10500) -DEF_IMGLIB_FN (void, png_longjmp, (png_structp, int)); +DEF_IMGLIB_FN (void, png_longjmp, (png_structp, int)) PNG_NORETURN; DEF_IMGLIB_FN (jmp_buf *, png_set_longjmp_fn, (png_structp, png_longjmp_ptr, size_t)); #endif /* libpng version >= 1.5 */ -- 2.39.2