Hi folks,

Trying to compile Wireshark (SVN) on my Solaris 9 system is giving me 
this error:

> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/local/include 
> -Werror "-D_U_=__attribute__((unused))" -g -O2 -Wall -W 
> -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith 
> -Wbad-function-cast -Wcast-qual -Wwrite-strings -Wstrict-prototypes 
> -Wmissing-declarations -Wcast-align -I/usr/local/include/glib-1.2 
> -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/local/include -MT 
> libwiretap_la-file_access.lo -MD -MP -MF .deps/libwiretap_la-file_access.Tpo 
> -c file_access.c  -fPIC -DPIC -o libwiretap_la-file_access.o
> file_access.c: In function `wtap_dump_file_write':
> file_access.c:952: warning: passing arg 2 of `gzwrite' discards qualifiers 
> from pointer target type

Which doesn't make sense to me because (from the pre-processed but 
not-yet-compiled file):

> extern int gzwrite (gzFile file, const voidp buf, unsigned len);

[...]

> size_t wtap_dump_file_write(wtap_dumper *wdh, const void *buf, unsigned 
> bufsize)
> {
> 
>  if(wdh->compressed) {
>   return gzwrite(wdh->fh, buf, bufsize);

What am I missing here?
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to