[sr-dev] git:master:bb7f26b3: core: dprint - compare func name against null to avoid latest gcc warnings
Daniel-Constantin Mierla
miconda at gmail.com
Sat Feb 15 21:00:45 CET 2020
Module: kamailio
Branch: master
Commit: bb7f26b3b423d801a244d597ed79ac2b3fcae831
URL: https://github.com/kamailio/kamailio/commit/bb7f26b3b423d801a244d597ed79ac2b3fcae831
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-15T20:59:38+01:00
core: dprint - compare func name against null to avoid latest gcc warnings
---
Modified: src/core/dprint.h
---
Diff: https://github.com/kamailio/kamailio/commit/bb7f26b3b423d801a244d597ed79ac2b3fcae831.diff
Patch: https://github.com/kamailio/kamailio/commit/bb7f26b3b423d801a244d597ed79ac2b3fcae831.patch
---
diff --git a/src/core/dprint.h b/src/core/dprint.h
index fead97c4bb..2972799ed2 100644
--- a/src/core/dprint.h
+++ b/src/core/dprint.h
@@ -194,8 +194,8 @@ void log_prefix_init(void);
#define LOGV_PREFIX_STR ((log_prefix_val)?log_prefix_val->s:"")
#define LOGV_PREFIX_LEN ((log_prefix_val)?log_prefix_val->len:0)
-#define LOGV_FUNCNAME_STR(vfuncname) (((void*)vfuncname)?vfuncname:"")
-#define LOGV_FUNCSUFFIX_STR(vfuncname) (((void*)vfuncname)?_FUNC_SUFFIX_:"")
+#define LOGV_FUNCNAME_STR(vfuncname) (((void*)vfuncname!=NULL)?vfuncname:"")
+#define LOGV_FUNCSUFFIX_STR(vfuncname) (((void*)vfuncname!=NULL)?_FUNC_SUFFIX_:"")
/** @brief
* General logging macros
More information about the sr-dev
mailing list