$ gcc --version gcc (Debian 4.7.2-4) 4.7.2
CC (gcc) [M pdb.so] pdb.o pdb.c: In function âpdb_queryâ: pdb.c:273:7: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
CC (gcc) [M sca.so] sca_call_info.o sca_call_info.c: In function âsca_call_info_seize_held_callâ: sca_call_info.c:689:11: warning: the comparison will always evaluate as âfalseâ for the address of âcallee_aorâ will never be NULL [-Waddress]
(gcc) [M sca.so] sca_rpc.o sca_rpc.c: In function âsca_rpc_update_appearanceâ: sca_rpc.c:369:8: warning: the comparison will always evaluate as âfalseâ for the address of âapp_uriâ will never be NULL [-Waddress] CC (gcc) [M sca.so] sca_subscribe.o sca_subscribe.c: In function âsca_subscription_from_requestâ: sca_subscribe.c:1020:10: warning: the comparison will always evaluate as âfalseâ for the address of âto_tagâ will never be NULL [-Waddress]
CC (gcc) [L libser_cds.so.0.1] rr_serialize.o rr_serialize.c: In function ârr_dupâ: rr_serialize.c:10:6: warning: variable âresâ set but not used [-Wunused-but-set-variable] CC (gcc) [L libser_cds.so.0.1] serialize.o serialize.c: In function âsstream_get_str_exâ: serialize.c:91:6: warning: variable âresâ set but not used [-Wunused-but-set-variable]
CC (gcc) [M pdt.so] domains.o domains.c: In function âpdt_check_pdâ: domains.c:406:15: warning: variable âdhashâ set but not used [-Wunused-but-set-variable]
CC (gcc) [M usrloc.so] urecord.o urecord.c: In function ânodb_timerâ: urecord.c:211:6: warning: variable ânotâ set but not used [-Wunused-but-set-variable] urecord.c: In function âwt_timerâ: urecord.c:254:6: warning: variable ânotâ set but not used [-Wunused-but-set-variable] urecord.c: In function âwb_timerâ: urecord.c:307:6: warning: variable ânotâ set but not used [-Wunused-but-set-variable]
CC (gcc) [M auth_diameter.so] auth_diameter.o auth_diameter.c: In function âgroup_fixupâ: auth_diameter.c:215:8: warning: variable âptrâ set but not used [-Wunused-but-set-variable] CC (gcc) [M auth_diameter.so] authorize.o authorize.c: In function âdiameter_authorizeâ: authorize.c:298:6: warning: variable âmethodâ set but not used [-Wunused-but-set-variable]
CC (gcc) [M p_usrloc.so] udomain.o udomain.c: In function âdb_timer_udomainâ: udomain.c:596:11: warning: variable âvalsâ set but not used [-Wunused-but-set-variable] udomain.c:595:11: warning: variable âopsâ set but not used [-Wunused-but-set-variable] udomain.c:594:11: warning: variable âkeysâ set but not used [-Wunused-but-set-variable]
CC (gcc) [M statistics.so] statistics.o statistics.c: In function âfixup_statâ: statistics.c:175:7: warning: ânâ may be used uninitialized in this function [-Wmaybe-uninitialized]
Thanks for the report. The warnings when compiling the sca module are fixed.
On Dec 5, 2012, at 1:31 PM, Ovidiu Sas osas@voipembedded.com wrote:
$ gcc --version gcc (Debian 4.7.2-4) 4.7.2
... snip ...
CC (gcc) [M sca.so] sca_call_info.o sca_call_info.c: In function âsca_call_info_seize_held_callâ: sca_call_info.c:689:11: warning: the comparison will always evaluate as âfalseâ for the address of âcallee_aorâ will never be NULL [-Waddress]
(gcc) [M sca.so] sca_rpc.o sca_rpc.c: In function âsca_rpc_update_appearanceâ: sca_rpc.c:369:8: warning: the comparison will always evaluate as âfalseâ for the address of âapp_uriâ will never be NULL [-Waddress] CC (gcc) [M sca.so] sca_subscribe.o sca_subscribe.c: In function âsca_subscription_from_requestâ: sca_subscribe.c:1020:10: warning: the comparison will always evaluate as âfalseâ for the address of âto_tagâ will never be NULL [-Waddress] ... snip ...