--- Comment #2 from redi at gcc dot gnu dot org 2010-03-09 10:34 ---
besides which, making it const would allow:
void bork_the_stream(const izstream i)
{
::gzclose(i.fp());
}
which doesn't help anyone. cppcheck is a very simplistic pattern matcher, in
this case it's wrong IMHO,
--- Comment #1 from tromey at gcc dot gnu dot org 2010-03-08 21:02 ---
zlib is not maintained as part of gcc -- it is just imported into
the tree for convenience.
As such we minimize the changes we make to zlib.
A change like this one should be reported to the real zlib maintainers.