[Zlib-devel] [PATCH] Usage of const/z_const, with and without ZLIB_CONST

Mark Adler madler at madler.net
Mon Aug 13 03:10:16 EDT 2012


Daniel,

Thanks.  I have completed what you started, and zlib now compiles cleanly with -Wcast-qual, though only if ZLIB_CONST is #defined.  You can find the commit on github.

Of course, zlib still compiles cleanly without -Wcast-qual, with or without ZLIB_CONST.  However -Wcast-qual without ZLIB_CONST results in four inescapable warnings, if backwards compatibility is to be retained with the zlib.h interface.

Mark





More information about the Zlib-devel mailing list