[Zlib-devel] Inflate 1.2.beta1 available for testing

Paul Marquess Paul.Marquess at btinternet.com
Tue Nov 26 04:36:01 EST 2002


> From: Zlib-devel-admin at zlib.net [mailto:Zlib-devel-admin at zlib.net]On
> Behalf Of Paul Marquess
> Sent: 26 November 2002 09:16
> To: Mark Adler; Zlib-devel at zlib.net
> Subject: RE: [Zlib-devel] Inflate 1.2.beta1 available for testing
> 
> 
> > 
> > All,
> > 
> > I have uploaded beta1 of the new inflate code with some speed 
> > improvements over beta0.
> > 
> >      http://www.alumni.caltech.edu/~madler/infnew-1.tar.gz
> 
> Works fine with Compress::Zlib, the Perl interface to zlib. 

Previous test used gcc.

with cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15, I get these warnings

cc -O -DHAVE_UNISTD_H -DUSE_MMAP  -c  inflate.c
"inflate.c", line 447: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "./zlib.h", line 838
        argument : pointer to char
"inflate.c", line 489: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "./zlib.h", line 838
        argument : pointer to char
"inflate.c", line 494: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "./zlib.h", line 838
        argument : pointer to char
"inflate.c", line 499: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "./zlib.h", line 838
        argument : pointer to char
"inflate.c", line 506: warning: argument #2 is incompatible with prototype:
        prototype: pointer to const unsigned char : "./zlib.h", line 838
        argument : pointer to char

Changing the definition of hbuf this silences all warnings.

#ifdef GUNZIP
    Bytef hbuf[4];		/* buffer for gzip header crc calculation */
#endif

cheers
Paul
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com




More information about the Zlib-devel mailing list