[Devel] compiler warnings with gcc 4.1.2

Juha Heinanen jh at tutpro.com
Wed Oct 18 19:29:52 CEST 2006


i upgraded debian on one of my boxes to testing (etch) that came with
gcc 4.1.2.  as result, i started to get a bunch of warnings listed
below when building CVS head openser.

could maintainers of those core/module files please fix them.

-- juha


Compiling usr_avp.c
usr_avp.c: In function 'add_avp':
usr_avp.c:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c:144: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c: In function 'get_avp_name':
usr_avp.c:182: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c:185: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c: In function 'get_avp_val':
usr_avp.c:206: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c:210: warning: dereferencing type-punned pointer will break strict-aliasing rules
usr_avp.c:214: warning: dereferencing type-punned pointer will break
strict-aliasing rules

...

Compiling parser/hf.c
parser/hf.c: In function 'clean_hdr_field':
parser/hf.c:78: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:85: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:89: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:93: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:111: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:115: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:125: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:129: warning: dereferencing type-punned pointer will break strict-aliasing rules
parser/hf.c:155: warning: dereferencing type-punned pointer will break strict-aliasing rules

...

parser/digest/digest.c: In function 'parse_credentials':
parser/digest/digest.c:83: warning: dereferencing type-punned pointer will break strict-aliasing rules

...

make[2]: Entering directory `/usr/src/trunk-src/openxg-openser/modules/presence'
Compiling notify.c
Compiling pidf.c
pidf.c: In function 'agregate_xmls':
pidf.c:321: warning: passing argument 2 of 'xmlDocDumpFormatMemory' from incompatible pointer type
pidf.c: In function 'build_off_nbody':
pidf.c:568: warning: passing argument 2 of 'xmlDocDumpFormatMemory' from incompatible pointer type
pidf.c: In function 'create_winfo_xml':
pidf.c:715: warning: passing argument 2 of 'xmlDocDumpFormatMemory' from incompatible pointer type
pidf.c: In function 'get_final_notify_body':
pidf.c:1010: warning: passing argument 2 of 'xmlDocDumpFormatMemory' from incompatible pointer type
Compiling presence.c

...

make[2]: Entering directory `/usr/src/trunk-src/openxg-openser/modules/tlsops'
Compiling tlsops.c
Compiling tls_select.c
tls_select.c: In function 'tlsops_comp':
tls_select.c:493: warning: dereferencing type-punned pointer will break strict-aliasing rules

...

make[2]: Entering directory `/usr/src/trunk-src/openxg-openser/modules/tm'
Compiling t_fifo.c
t_fifo.c: In function 'write_to_fifo':
t_fifo.c:407: warning: dereferencing type-punned pointer will break strict-aliasing rules
t_fifo.c: In function 'write_to_unixsock':
t_fifo.c:769: warning: dereferencing type-punned pointer will break strict-aliasing rules

...

make[2]: Entering directory `/usr/src/trunk-src/openxg-openser/modules/uac_redirect'
Compiling rd_funcs.c
rd_funcs.c: In function 'shmcontact2dset':
rd_funcs.c:290: warning: dereferencing type-punned pointer will break strict-aliasing rules

...

make[2]: Entering directory `/usr/src/trunk-src/openxg-openser/modules/usrloc'
ul_fifo.c: In function 'ul_add':
ul_fifo.c:255: warning: dereferencing type-punned pointer will break strict-aliasing rules
Compiling ul_mod.c
Compiling ul_unixsock.c
ul_unixsock.c: In function 'ul_add':
ul_unixsock.c:374: warning: dereferencing type-punned pointer will break strict-aliasing rules



More information about the Devel mailing list