Module: kamailio Branch: master Commit: 35ca40c564d8b55b873f92cc30865ce2472d0457 URL: https://github.com/kamailio/kamailio/commit/35ca40c564d8b55b873f92cc30865ce2472d0457
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2020-02-15T19:33:02+01:00 core: dprint - try to make gcc happy evaluating __func__ - gcc throws warning without cast, clang is ok --- Modified: src/core/dprint.h --- Diff: https://github.com/kamailio/kamailio/commit/35ca40c564d8b55b873f92cc30865ce2472d0457.diff Patch: https://github.com/kamailio/kamailio/commit/35ca40c564d8b55b873f92cc30865ce2472d0457.patch --- diff --git a/src/core/dprint.h b/src/core/dprint.h index d2f4de2007..fead97c4bb 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) ((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 _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
