[sr-dev] master compiler warnings

Juha Heinanen jh at tutpro.com
Tue Apr 22 10:05:59 CEST 2014


debian wheezy gcc provides these compiler warnings on master.  at least
the avpops ones i don't remember seeing earlier.

-- juha

CC (cc) [M avpops.so]		avpops_impl.o
avpops_impl.c: In function 'ops_dbload_avps':
avpops_impl.c:294:2: warning: missing braces around initializer [-Wmissing-braces]
avpops_impl.c:294:2: warning: (near initialization for 'xvalue.rs') [-Wmissing-braces]

CC (cc) [M sctp.so]		sctp_mod.o
sctp_mod.c:125:12: warning: 'sctp_mod_pre_init' defined but not used [-Wunused-function]

CC (cc) [M tls.so]		tls_server.o
tls_server.c: In function 'tls_complete_init':
tls_server.c:192:3: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
tls_server.c: In function 'tls_shutdown':
tls_server.c:521:4: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
tls_server.c: In function 'tls_encode_f':
tls_server.c:798:5: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
tls_server.c:832:5: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
tls_server.c: In function 'tls_read_f':
tls_server.c:1186:4: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
tls_server.c:1220:4: warning: variable 'ret' set but not used [-Wunused-but-set-variable]




More information about the sr-dev mailing list