[Zlib-devel] Building with C++

Mark Adler madler at madler.net
Sat Mar 17 23:35:03 EDT 2012


Paul,

Thank you for your patches.  However, I have considered all of the casting of void *'s that you propose, and I have decided to not apply the patches.  If someone is really intent on compiling zlib in a different language than it was written in, then they can either ignore the warnings or turn them off.  The way void *'s are converted in zlib is entirely in keeping with the definition and intent of the C language, and adding the casts would detract from readability.

Mark





More information about the Zlib-devel mailing list