Module: sip-router
Branch: master
Commit: a6c250c091e29c1f4fd53782dfb723fa194fe03e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a6c250c…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Mon Sep 17 17:21:37 2012 +0300
core: fixed some bening (-Wunused-var) warnings displayed by clang
Core builds with no errors/warning
---
action.c | 2 +-
forward.c | 2 +-
tcp_main.c | 16 ++++++++--------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/action.c b/action.c
index 5e0875c..dbd528c 100644
--- a/action.c
+++ b/action.c
@@ -140,7 +140,7 @@ struct onsend_info* p_onsend=0; /* onsend route send info */
if ((dst)[i+2].type == RVE_FREE_FIXUP_ST) {\
/* call free_fixup (which should restore the original
string) */ \
- call_fixup((cmd)->free_fixup, &(dst)[i+2].u.data, i+1); \
+ (void)call_fixup((cmd)->free_fixup, &(dst)[i+2].u.data, i+1); \
} else if ((dst)[i+2].type == FPARAM_DYN_ST) {\
/* completely frees fparam and restore original string */\
fparam_free_restore(&(dst)[i+2].u.data); \
diff --git a/forward.c b/forward.c
index b259ecf..b0540d2 100644
--- a/forward.c
+++ b/forward.c
@@ -648,7 +648,7 @@ int forward_request(struct sip_msg* msg, str* dst, unsigned short
port,
if (msg_send(send_info, buf, len)<0){
ret=ser_error=E_SEND;
#ifdef USE_DST_BLACKLIST
- dst_blacklist_add(BLST_ERR_SEND, send_info, msg);
+ (void)dst_blacklist_add(BLST_ERR_SEND, send_info, msg);
#endif
#ifdef USE_DNS_FAILOVER
continue; /* try another ip */
diff --git a/tcp_main.c b/tcp_main.c
index a6e3019..e17d06a 100644
--- a/tcp_main.c
+++ b/tcp_main.c
@@ -709,7 +709,7 @@ inline static int _wbufq_add(struct tcp_connection* c, const char*
data,
if (q->first && TICKS_LT(q->wr_timeout, t)){
if (unlikely(c->state==S_CONN_CONNECT)){
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su( BLST_ERR_CONNECT, c->rcv.proto,
+ (void)dst_blacklist_su( BLST_ERR_CONNECT, c->rcv.proto,
&c->rcv.src_su, &c->send_flags, 0);
#endif /* USE_DST_BLACKLIST */
TCP_EV_CONNECT_TIMEOUT(0, TCP_LADDR(c), TCP_LPORT(c),
@@ -717,7 +717,7 @@ inline static int _wbufq_add(struct tcp_connection* c, const char*
data,
TCP_STATS_CONNECT_FAILED();
}else{
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su( BLST_ERR_SEND, c->rcv.proto,
+ (void)dst_blacklist_su( BLST_ERR_SEND, c->rcv.proto,
&c->rcv.src_su, &c->send_flags, 0);
#endif /* USE_DST_BLACKLIST */
TCP_EV_SEND_TIMEOUT(0, &c->rcv);
@@ -3433,7 +3433,7 @@ inline static int handle_tcp_child(struct tcp_child* tcp_c, int
fd_i)
/* timeout */
if (unlikely(tcpconn->state==S_CONN_CONNECT)){
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su( BLST_ERR_CONNECT,
+ (void)dst_blacklist_su( BLST_ERR_CONNECT,
tcpconn->rcv.proto,
&tcpconn->rcv.src_su,
&tcpconn->send_flags, 0);
@@ -3444,7 +3444,7 @@ inline static int handle_tcp_child(struct tcp_child* tcp_c, int
fd_i)
TCP_STATS_CONNECT_FAILED();
}else{
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su( BLST_ERR_SEND,
+ (void)dst_blacklist_su( BLST_ERR_SEND,
tcpconn->rcv.proto,
&tcpconn->rcv.src_su,
&tcpconn->send_flags, 0);
@@ -4222,7 +4222,7 @@ inline static int handle_tcpconn_ev(struct tcp_connection* tcpconn,
short ev,
if (unlikely(ev & POLLERR)){
if (unlikely(tcpconn->state==S_CONN_CONNECT)){
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su(BLST_ERR_CONNECT, tcpconn->rcv.proto,
+ (void)dst_blacklist_su(BLST_ERR_CONNECT, tcpconn->rcv.proto,
&tcpconn->rcv.src_su,
&tcpconn->send_flags, 0);
#endif /* USE_DST_BLACKLIST */
@@ -4232,7 +4232,7 @@ inline static int handle_tcpconn_ev(struct tcp_connection* tcpconn,
short ev,
TCP_STATS_CONNECT_FAILED();
}else{
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su(BLST_ERR_SEND, tcpconn->rcv.proto,
+ (void)dst_blacklist_su(BLST_ERR_SEND, tcpconn->rcv.proto,
&tcpconn->rcv.src_su,
&tcpconn->send_flags, 0);
#endif /* USE_DST_BLACKLIST */
@@ -4409,7 +4409,7 @@ static ticks_t tcpconn_main_timeout(ticks_t t, struct timer_ln* tl,
void* data)
if (tcp_async && _wbufq_non_empty(c) && TICKS_GE(t,
c->wbuf_q.wr_timeout)){
if (unlikely(c->state==S_CONN_CONNECT)){
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su(BLST_ERR_CONNECT, c->rcv.proto, &c->rcv.src_su,
+ (void)dst_blacklist_su(BLST_ERR_CONNECT, c->rcv.proto, &c->rcv.src_su,
&c->send_flags, 0);
#endif /* USE_DST_BLACKLIST */
TCP_EV_CONNECT_TIMEOUT(0, TCP_LADDR(c), TCP_LPORT(c), TCP_PSU(c),
@@ -4417,7 +4417,7 @@ static ticks_t tcpconn_main_timeout(ticks_t t, struct timer_ln* tl,
void* data)
TCP_STATS_CONNECT_FAILED();
}else{
#ifdef USE_DST_BLACKLIST
- dst_blacklist_su(BLST_ERR_SEND, c->rcv.proto, &c->rcv.src_su,
+ (void)dst_blacklist_su(BLST_ERR_SEND, c->rcv.proto, &c->rcv.src_su,
&c->send_flags, 0);
#endif /* USE_DST_BLACKLIST */
TCP_EV_SEND_TIMEOUT(0, &c->rcv);