summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2016-05-25 06:33:26 +0000
committerLiong Sauw Ming <ming@teluu.com>2016-05-25 06:33:26 +0000
commitf6d183c920b63cca988017efff4b9e7c32879232 (patch)
tree985f916fd918e4b15f4358016331404debd6f0d8 /pjlib
parent05bfd4c43f25a31ccbc28929b2e6ced750f2f7ae (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
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/include/pj/log.h3
1 files changed, 2 insertions, 1 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)
/**