From 7d29fabefb6405ea7bc47b8d9a465df5af96612c Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 28 Mar 2007 20:17:04 +0000 Subject: Fixed warnings/errors when logging is disabled git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1113 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib-util/src/pjlib-util/srv_resolver.c | 1 + pjnath/src/pjnath/ice_session.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pjlib-util/src/pjlib-util/srv_resolver.c b/pjlib-util/src/pjlib-util/srv_resolver.c index ef7c6ef2..0eb084f3 100644 --- a/pjlib-util/src/pjlib-util/srv_resolver.c +++ b/pjlib-util/src/pjlib-util/srv_resolver.c @@ -631,6 +631,7 @@ on_error: /* Check for failure */ if (status != PJ_SUCCESS) { char errmsg[PJ_ERR_MSG_SIZE]; + PJ_UNUSED_ARG(errmsg); PJ_LOG(4,(query_job->objname, "DNS %s record resolution error for '%.*s'." " Err=%d (%s)", diff --git a/pjnath/src/pjnath/ice_session.c b/pjnath/src/pjnath/ice_session.c index 3214215c..ec87a5c9 100644 --- a/pjnath/src/pjnath/ice_session.c +++ b/pjnath/src/pjnath/ice_session.c @@ -685,7 +685,7 @@ static void dump_checklist(const char *title, const pj_ice_sess *ice, } #else -#define dump_checklist(ice, clist) +#define dump_checklist(title, ice, clist) #endif static void check_set_state(pj_ice_sess *ice, pj_ice_sess_check *check, -- cgit v1.2.3