commit | 62d6112a7981ad7c34f3b43cffdf00d4662a4f25 | [log] [tgz] |
---|---|---|
author | Mark Adler <madler@alumni.caltech.edu> | Sun Aug 12 18:08:52 2012 -0700 |
committer | Mark Adler <madler@alumni.caltech.edu> | Mon Aug 13 00:02:40 2012 -0700 |
tree | aed93070f7e1be31868dce1d62a1de6ffc1360f9 | |
parent | fb4e0599a5ddaef9eee726f786b9edef4943432b [diff] |
Clean up the usage of z_const and respect const usage within zlib. This patch allows zlib to compile cleanly with the -Wcast-qual gcc warning enabled, but only if ZLIB_CONST is defined, which adds const to next_in and msg in z_stream and in the in_func prototype. A --const option is added to ./configure which adds -DZLIB_CONST to the compile flags, and adds -Wcast-qual to the compile flags when ZLIBGCCWARN is set in the environment.