[Cbe-oss-dev] [patch 3/4] MARS: Fix build warnings

Kazunori Asayama asayama at sm.sony.co.jp
Mon Aug 25 12:33:52 EST 2008


Geoff Levand wrote:
> --- a/src/host/lib/mars_task.c
> +++ b/src/host/lib/mars_task.c
> @@ -95,7 +95,7 @@ int mars_task_initialize(struct mars_con
>  				(struct mars_workload_context *)&task,
>  				MARS_WORKLOAD_TYPE_TASK);
>  	MARS_CHECK_CLEANUP_RET(ret == MARS_SUCCESS,
> -				free((void *)task.context_save_area), ret);
> +			free((void *)(uintptr_t)task.context_save_area), ret);
>  	MARS_PRINT_TASK_CONTEXT(&task);

I suggest using a macro or a static inline function to convert EA 
from/to pointer.

-- 
(ASAYAMA Kazunori
    (asayama at sm.sony.co.jp))
t




More information about the cbe-oss-dev mailing list