I just ran the new sourceforge-based tool cppcheck over the source code of the 4.5 snapshot 20100304 and cppcheck said
[./zlib/contrib/iostream2/zstream.h:101]: (style) The function 'izstream::fp' can be const [./zlib/contrib/iostream2/zstream.h:234]: (style) The function 'ozstream::fp' can be const I checked the source code and I agree with cppcheck. Both these functions could be marked const. -- Summary: zlib: two C++ member functions could be marked const Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: x86_64-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43295