소스 검색

core: dprint - try to make gcc happy evaluating __func__

- gcc throws warning without cast, clang is ok
Daniel-Constantin Mierla 5 년 전
부모
커밋
35ca40c564
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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