From: marco Date: Wed, 20 Sep 2006 13:53:13 +0000 (+0000) Subject: Add cast to generated function's returns. X-Git-Tag: 1.0.0~541 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2817562331caf56a8dddd24d24549f7e047993a2;p=bertos.git Add cast to generated function's returns. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@700 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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)