Subject: | gcc warnings on amd64 |
There are some other compiler warnings with GCC 4.4.1 on amd64:
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/lib/perl/5.10/CORE" -DHAVE_CONFIG_H perl_libyaml.c
In file included from ./perl_libyaml.h:14,
from perl_libyaml.c:1:
./ppport.h:2979:1: warning: "PERL_UNUSED_DECL" redefined
In file included from ./perl_libyaml.h:9,
from perl_libyaml.c:1:
/usr/lib/perl/5.10/CORE/perl.h:299:1: warning: this is the location of
the previous definition
perl_libyaml.c: In function ‘loader_error_msg’:
perl_libyaml.c:100: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘size_t’
perl_libyaml.c:100: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘size_t’
perl_libyaml.c:109: warning: format ‘%d’ expects type ‘int’, but
argument 4 has type ‘size_t’
perl_libyaml.c:109: warning: format ‘%d’ expects type ‘int’, but
argument 5 has type ‘size_t’
perl_libyaml.c: In function ‘Load’:
perl_libyaml.c:154: warning: passing argument 2 of ‘Perl_sv_2mortal’
from incompatible pointer type
/usr/lib/perl/5.10/CORE/proto.h:2175: note: expected ‘struct SV *’ but
argument is of type ‘struct HV *’
perl_libyaml.c:184: warning: format not a string literal and no format
arguments
perl_libyaml.c: In function ‘load_node’:
perl_libyaml.c:233: warning: format not a string literal and no format
arguments
perl_libyaml.c:238: warning: format not a string literal and no format
arguments
perl_libyaml.c: In function ‘load_mapping’:
perl_libyaml.c:282: warning: format not a string literal and no format
arguments
perl_libyaml.c: In function ‘load_sequence’:
perl_libyaml.c:315: warning: format not a string literal and no format
arguments
perl_libyaml.c: In function ‘Dump’:
perl_libyaml.c:493: warning: passing argument 2 of
‘yaml_emitter_set_output’ from incompatible pointer type
./yaml.h:1827: note: expected ‘int (*)(void *, unsigned char *, size_t)’
but argument is of type ‘int (*)(void *, unsigned char *, unsigned int)’
perl_libyaml.c: In function ‘dump_node’:
perl_libyaml.c:641: warning: assignment discards qualifiers from pointer
target type
perl_libyaml.c: In function ‘get_yaml_tag’:
perl_libyaml.c:701: warning: assignment discards qualifiers from pointer
target type
/usr/bin/perl /home/dolmen/perl/lib/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl/5.10/ExtUtils/typemap LibYAML.xs > LibYAML.xsc && mv
LibYAML.xsc LibYAML.c
cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-O2 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/lib/perl/5.10/CORE" -DHAVE_CONFIG_H LibYAML.c
In file included from ./perl_libyaml.h:14,
from LibYAML.xs:1:
./ppport.h:2979:1: warning: "PERL_UNUSED_DECL" redefined
In file included from ./perl_libyaml.h:9,
from LibYAML.xs:1:
/usr/lib/perl/5.10/CORE/perl.h:299:1: warning: this is the location of
the previous definition
--
Olivier Mengué - http://o.mengue.free.fr/