diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-05-25 06:33:26 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-05-25 06:33:26 +0000 |
commit | f6d183c920b63cca988017efff4b9e7c32879232 (patch) | |
tree | 985f916fd918e4b15f4358016331404debd6f0d8 | |
parent | 05bfd4c43f25a31ccbc28929b2e6ced750f2f7ae (diff) |
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
-rw-r--r-- | pjlib/include/pj/log.h | 3 | ||||
-rw-r--r-- | 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; } |