From 63802e5b84405f94ff8ce00bf997159af0c45cfd Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 5 Mar 2013 23:00:38 +0900 Subject: [PATCH] since Eo.h is inclued in c++ stuff... how about we cast from the void * return from calloc to Eo_Dbg_Info * since c++ is really unhappy with this stuff without a cast (silly c++). --- src/lib/eo/Eo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index c596a270e2..867d26a13f 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -159,7 +159,7 @@ typedef struct _Eo_Dbg_Info Eo_Dbg_Info; static inline Eo_Dbg_Info * EO_DBG_INFO_LIST_APPEND(Eo_Dbg_Info *list, const char *name) { - Eo_Dbg_Info *tmp = calloc(1, sizeof(*tmp)); + Eo_Dbg_Info *tmp = (Eo_Dbg_Info *)calloc(1, sizeof(*tmp)); tmp->name = eina_stringshare_add(name); eina_value_list_setup(&(tmp->value), EO_DBG_INFO_TYPE); if (list)