From f6d183c920b63cca988017efff4b9e7c32879232 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Wed, 25 May 2016 06:33:26 +0000 Subject: Re #1917 (misc): Suppress empty-body warning and "logical not is only applied to the left hand side of this comparison" warning git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5317 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/log.h | 3 ++- pjsip/src/pjsua-lib/pjsua_call.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pjlib/include/pj/log.h b/pjlib/include/pj/log.h index 96dc4852..e0fd9526 100644 --- a/pjlib/include/pj/log.h +++ b/pjlib/include/pj/log.h @@ -105,8 +105,9 @@ enum pj_log_decoration * @hideinitializer */ #define PJ_LOG(level,arg) do { \ - if (level <= pj_log_get_level()) \ + if (level <= pj_log_get_level()) { \ pj_log_wrapper_##level(arg); \ + } \ } while (0) /** diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index cd8c227f..2c269e67 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -4515,7 +4515,7 @@ static void on_call_transferred( pjsip_inv_session *inv, pjsip_msg_find_hdr_by_name(rdata->msg_info.msg, &str_refer_sub, NULL); if (refer_sub) { - if (!pj_strnicmp2(&refer_sub->hvalue, "true", 4)==0) + if (pj_strnicmp2(&refer_sub->hvalue, "true", 4)!=0) no_refer_sub = PJ_TRUE; } -- cgit v1.2.3