coders/png.c:1184:3: warning: 'jmpbuf' is deprecated
Posted: 2011-02-11T18:17:23-07:00
Fix wanted.
From libpng CHANGES:
but it fails:
Changes:
From libpng CHANGES:
An attempt is made in coders/png.c:version 1.4.0beta103 [November 21, 2009]
Make the 'png_jmpbuf' macro expand to a call that records the correct longjmp function as well as returning a pointer to the setjmp jmp_buf buffer, and marked direct access to jmpbuf 'deprecated'. (John Bowler)
Code: Select all
#if PNG_LIBPNG_VER < 10500
longjmp(ping->jmpbuf,1);
#else
png_longjmp(ping,1);
#endif
The assumption about PNG_LIBPNG_VER is too tight; I have libpng 1.4.4 and it fails.CC coders/coders_png_la-png.lo
coders/png.c: In function 'PNGErrorHandler':
coders/png.c:1184:3: warning: 'jmpbuf' is deprecated (declared at /usr/include/png.h:1098)
Changes:
So it should probably be PNG_LIBPNG_VER < 10401.version 1.4.0beta103 [November 21, 2009]
Make the 'png_jmpbuf' macro expand to a call that records the correct longjmp function as well as returning a pointer to the setjmp jmp_buf buffer, and marked direct access to jmpbuf 'deprecated'. (John Bowler)