http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47221
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-11 11:40:08 UTC --- I don't think the warning is bogus. z_stream d_stream; /* decompression stream */ d_stream.zalloc = (alloc_func) 0; d_stream.zfree = (free_func) 0; ... /* Handle NO_HEADER using undocumented zlib feature. This is a very common hack. */ inflateInit2 (&d_stream, -MAX_WBITS); inflate (&d_stream, Z_NO_FLUSH); we don't check for an error of inflateInit2 in which case state is not initialized.