diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2014-01-23 08:09:29 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2014-01-23 08:09:29 +0000 |
commit | 19876d4d3296c6cb7b3e573bdfcc8fedf0072ac3 (patch) | |
tree | c1dce45e478171d85dc5fb5e9f07d275b8cca32f /pjsip/src | |
parent | f0c2e61eb1c3ee704503be5e0703aa05fac73903 (diff) |
Misc (re #1630): Fixed GCC build warnings (thanks Tzafrir Cohen for the patch).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4712 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsip/sip_transport_udp.c | 3 | ||||
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 5 | ||||
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_im.c | 5 | ||||
-rw-r--r-- | pjsip/src/test/msg_err_test.c | 5 | ||||
-rw-r--r-- | pjsip/src/test/regc_test.c | 3 |
5 files changed, 6 insertions, 15 deletions
diff --git a/pjsip/src/pjsip/sip_transport_udp.c b/pjsip/src/pjsip/sip_transport_udp.c index bdd04161..36995b08 100644 --- a/pjsip/src/pjsip/sip_transport_udp.c +++ b/pjsip/src/pjsip/sip_transport_udp.c @@ -620,12 +620,9 @@ static pj_status_t register_to_ioqueue(struct udp_transport *tp) /* Start ioqueue asynchronous reading to all rdata */ static pj_status_t start_async_read(struct udp_transport *tp) { - pj_ioqueue_t *ioqueue; int i; pj_status_t status; - ioqueue = pjsip_endpt_get_ioqueue(tp->base.endpt); - /* Start reading the ioqueue. */ for (i=0; i<tp->rdata_cnt; ++i) { pj_ssize_t size; diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index 1cd91fcd..4e840df1 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -4497,12 +4497,9 @@ static void pjsua_call_on_tsx_state_changed(pjsip_inv_session *inv, * Incoming MESSAGE request! */ pjsip_rx_data *rdata; - pjsip_msg *msg; pjsip_accept_hdr *accept_hdr; - pj_status_t status; rdata = e->body.tsx_state.src.rdata; - msg = rdata->msg_info.msg; /* Request MUST have message body, with Content-Type equal to * "text/plain". @@ -4522,7 +4519,7 @@ static void pjsua_call_on_tsx_state_changed(pjsip_inv_session *inv, /* Respond with 200 first, so that remote doesn't retransmit in case * the UI takes too long to process the message. */ - status = pjsip_dlg_respond( inv->dlg, rdata, 200, NULL, NULL, NULL); + pjsip_dlg_respond( inv->dlg, rdata, 200, NULL, NULL, NULL); /* Process MESSAGE request */ pjsua_im_process_pager(call->index, &inv->dlg->remote.info_str, diff --git a/pjsip/src/pjsua-lib/pjsua_im.c b/pjsip/src/pjsua-lib/pjsua_im.c index 7ae31889..a8175583 100644 --- a/pjsip/src/pjsua-lib/pjsua_im.c +++ b/pjsip/src/pjsua-lib/pjsua_im.c @@ -274,7 +274,6 @@ static pj_bool_t im_on_rx_request(pjsip_rx_data *rdata) pj_str_t from, to; pjsip_accept_hdr *accept_hdr; pjsip_msg *msg; - pj_status_t status; msg = rdata->msg_info.msg; @@ -306,8 +305,8 @@ static pj_bool_t im_on_rx_request(pjsip_rx_data *rdata) /* Respond with 200 first, so that remote doesn't retransmit in case * the UI takes too long to process the message. */ - status = pjsip_endpt_respond( pjsua_var.endpt, NULL, rdata, 200, NULL, - NULL, NULL, NULL); + pjsip_endpt_respond( pjsua_var.endpt, NULL, rdata, 200, NULL, + NULL, NULL, NULL); /* For the source URI, we use Contact header if present, since * Contact header contains the port number information. If this is diff --git a/pjsip/src/test/msg_err_test.c b/pjsip/src/test/msg_err_test.c index 3150c90e..8ad7f9f6 100644 --- a/pjsip/src/test/msg_err_test.c +++ b/pjsip/src/test/msg_err_test.c @@ -81,12 +81,11 @@ int msg_err_test(void) for (i=0; i<PJ_ARRAY_SIZE(test_entries); ++i) { pjsip_parser_err_report err_list, *e; - pjsip_msg *msg; PJ_LOG(3,(THIS_FILE, " Parsing msg %d", i)); pj_list_init(&err_list); - msg = pjsip_parse_msg(pool, test_entries[i].msg, - strlen(test_entries[i].msg), &err_list); + pjsip_parse_msg(pool, test_entries[i].msg, + strlen(test_entries[i].msg), &err_list); e = err_list.next; while (e != &err_list) { diff --git a/pjsip/src/test/regc_test.c b/pjsip/src/test/regc_test.c index 17cb399a..18abfed1 100644 --- a/pjsip/src/test/regc_test.c +++ b/pjsip/src/test/regc_test.c @@ -545,7 +545,7 @@ static int update_test(const pj_str_t *registrar_uri) pjsip_regc *regc; pjsip_contact_hdr *h1, *h2; - pjsip_sip_uri *u1, *u2; + pjsip_sip_uri *u1; unsigned i; pj_status_t status; pjsip_tx_data *tdata = NULL; @@ -602,7 +602,6 @@ static int update_test(const pj_str_t *registrar_uri) } u1 = (pjsip_sip_uri*) pjsip_uri_get_uri(h1->uri); - u2 = (pjsip_sip_uri*) pjsip_uri_get_uri(h2->uri); if (*u1->host.ptr == 'a') { if (h1->expires != 0) { |