[Zlib-devel] Testing CMakeLists from zlib 1.2.3.5
Mark Adler
madler at alumni.caltech.edu
Wed Jan 13 13:08:33 EST 2010
On Jan 13, 2010, at 9:04 AM, Vincent Torri wrote:
> void has no size. That's why you can't dereference a void*
>
> It would be better to say something like : gcc allows arithmetic pointer on void* to be like on char*
Actually sizeof(void) in gcc gives you one. void has no size in the ANSI standard, but in gcc it does. Having sizeof(void) give you something, and the having the ability to dereference void are apparently independent. In any case, zlib needs to abide by the ANSI standard, so it won't depend on that gcc-unique extension to the standard.
Mark
More information about the Zlib-devel
mailing list