[Zlib-devel] zlib 1.2.3.5 available for testing

Török Edwin edwintorok at gmail.com
Sat Jan 9 04:04:54 EST 2010


On 2010-01-09 05:23, Mark Adler wrote:
> On Jan 8, 2010, at 2:11 AM, Török Edwin wrote:
>   
>> gzread.c:121: warning: passing argument 3 of ‘gz_error’ discards
>> qualifiers from pointer target type
>> gzguts.h:109: note: expected ‘char *’ but argument is of type ‘const char *’
>>     
>
> Please try the patch below.
>   

The patch eliminates most of the warnings, thanks.
This is the only one that remains, and I think this one is OK (since you
never free it)"
gzlib.c:504: warning: assignment discards qualifiers from pointer target
type

>   
>> Perhaps there should be another field in the state structure that tells
>> whether to free the message or not?
>>     
>
> There is.  If state->err is Z_MEM_ERROR, then you don't free state->msg, otherwise you do (if it's not NULL).
>   


Ok.

Best regards,
--Edwin




More information about the Zlib-devel mailing list