Add cast to generated function's returns.
authormarco <marco@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 20 Sep 2006 13:53:13 +0000 (13:53 +0000)
committermarco <marco@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 20 Sep 2006 13:53:13 +0000 (13:53 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@700 38d2e660-2303-0410-9eaa-f027e97ec537

app/triface/cmd_ctor.h

index bf4f3fb54d12d4cbd90d6e7c40910e8500ae4e0a..92107c15c8b370dc69265003904efe044a6d4f24 100755 (executable)
@@ -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)