gnumeric-reader: Add cast to suppress warning.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 26 Sep 2012 00:09:47 +0000 (17:09 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 26 Sep 2012 04:20:52 +0000 (21:20 -0700)
commitf93823750113914727d641dd7e526349fe98cba0
treedddbdd102e475f21d7c17fdbaf7244d265cb77d3
parentd272a0e0664ced3e8e5bb2cde390ea0610a6b26e
gnumeric-reader: Add cast to suppress warning.

This suppresses a GCC warning for a mismatch between
xmlInputCloseCallback, which takes a "void *" parameter, and
gzclose(), which takes a "gzFile" (which is "struct gzFile_s *").

This came up with an upgrade from "squeeze" to "wheezy".  I assume
that a gzclose prototype became visible or that gzFile changed away
from "void *".

An alternative would be to write a trampoline to just transform one
pointer type to the other, but the xmlReaderForIO() invocation
already has one function cast so a second cast doesn't make it much
worse.
src/data/gnumeric-reader.c