Browse Source

core: dprint - try to make gcc happy evaluating __func__

- gcc throws warning without cast, clang is ok
Daniel-Constantin Mierla 5 years ago
parent
commit
35ca40c564
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/dprint.h

+ 2 - 2
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) ((vfuncname)?vfuncname:"")
-#define LOGV_FUNCSUFFIX_STR(vfuncname) ((vfuncname)?_FUNC_SUFFIX_:"")
+#define LOGV_FUNCNAME_STR(vfuncname) (((void*)vfuncname)?vfuncname:"")
+#define LOGV_FUNCSUFFIX_STR(vfuncname) (((void*)vfuncname)?_FUNC_SUFFIX_:"")
 
 /** @brief
  * General logging macros