]> granicus.if.org Git - imagemagick/commitdiff
Suppress pedantic warnings from libpng 1.2.41 and 1.4.0
authorglennrp <glennrp@git.imagemagick.org>
Mon, 9 Nov 2009 02:58:50 +0000 (02:58 +0000)
committerglennrp <glennrp@git.imagemagick.org>
Mon, 9 Nov 2009 02:58:50 +0000 (02:58 +0000)
coders/png.c

index 17c98ace0db22696ae83b52184e54c155f72618e..4b6d7da82c3376464127b42869ac048bbb455e54 100644 (file)
 #include "magick/transform.h"
 #include "magick/utility.h"
 #if defined(MAGICKCORE_PNG_DELEGATE)
+
+/* Suppress libpng pedantic warnings */
+#define PNG_DEPRECATED  /* use of this function is deprecated */
+#define PNG_USE_RESULT  /* the result of this function must be checked */
+#define PNG_NORETURN    /* this function does not return */
+#define PNG_ALLOCATED   /* the result of the function is new memory */
+#define PNG_DEPSTRUCT   /* access to this struct member is deprecated */
+
 #include "png.h"
 #include "zlib.h"
 \f