This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/43295] New: zlib: two C++ member functions could be marked const
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2010 20:39:43 -0000
- Subject: [Bug other/43295] New: zlib: two C++ member functions could be marked const
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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