From 2817562331caf56a8dddd24d24549f7e047993a2 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 20 Sep 2006 13:53:13 +0000 Subject: [PATCH] Add cast to generated function's returns. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@700 38d2e660-2303-0410-9eaa-f027e97ec537 --- app/triface/cmd_ctor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/triface/cmd_ctor.h b/app/triface/cmd_ctor.h index bf4f3fb5..92107c15 100755 --- a/app/triface/cmd_ctor.h +++ b/app/triface/cmd_ctor.h @@ -29,7 +29,7 @@ const struct CmdTemplate cmd_ ## NAME ## _template = \ #define MAKE_CMD(NAME, ARGS, RES, BODY) \ static ResultCode cmd_ ## NAME (parms *args) \ { \ - return BODY; \ + return (ResultCode)BODY; \ } \ MAKE_TEMPLATE(NAME, ARGS, RES) -- 2.25.1