[OpenSIPS-Devel] Warnings while compiling uac_redirect (due to acc includes)

Ovidiu Sas osas at voipembedded.com
Sat Mar 5 20:50:52 CET 2011


While compiling uac_redirect (trunk version), I got the following warnings:

gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott
-Wold-style-definition -Wmissing-field-initializers -Wredundant-decls
-DMOD_NAME='"uac_redirect"'    -DNAME='"opensips"'
-DVERSION='"1.6.3-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes
-DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:7779M"'  -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT
-DHAVE_SELECT -c rd_funcs.c -o rd_funcs.o
In file included from rd_funcs.h:36,
                 from rd_funcs.c:37:
../acc/acc_logic.h:64: warning: ‘struct dlg_cb_params’ declared
inside parameter list
../acc/acc_logic.h:64: warning: its scope is only this definition or
declaration, which is probably not what you want
../acc/acc_logic.h:64: warning: ‘struct dlg_cell’ declared inside
parameter list
Compiling redirect.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott
-Wold-style-definition -Wmissing-field-initializers -Wredundant-decls
-DMOD_NAME='"uac_redirect"'    -DNAME='"opensips"'
-DVERSION='"1.6.3-notls"' -DARCH='"i386"' -DOS='"linux"'
-DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes
-DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DSVNREVISION='"2:7779M"'  -DFAST_LOCK -DADAPTIVE_WAIT
-DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT
-DHAVE_SELECT -c redirect.c -o redirect.o
In file included from rd_funcs.h:36,
                 from redirect.c:36:
../acc/acc_logic.h:64: warning: ‘struct dlg_cb_params’ declared
inside parameter list
../acc/acc_logic.h:64: warning: its scope is only this definition or
declaration, which is probably not what you want
../acc/acc_logic.h:64: warning: ‘struct dlg_cell’ declared inside
parameter list



Regards,
Ovidiu Sas



More information about the Devel mailing list