summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-05 11:59:46 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-05 16:54:17 -0300
commitd4d9ecc92fe897e29a7c14c5856db617e8a16340 (patch)
tree561fdb0f16bafb97e7d8ef890a516cc9814b4080 /src/bin
parent714478cbf3ba6630e2f3255ae56f1d2af4ac7312 (diff)
downloadefl-d4d9ecc92fe897e29a7c14c5856db617e8a16340.tar.gz
eolian: Imply @no_unused if @move in return.
Summary: This makes sure the user is warned if it ignores a return value that could potentially be a memory leak. This also makes possible to use `value {}` blocks with `@move` instead of value-less properties with `@no_unused`. Also removed the `@move` from canvas_text_async_layout as it is ignored in the only place it is used. Reviewers: q66 Reviewed By: q66 Subscribers: #reviewers, #committers, bu5hm4n, felipealmeida, cedric, segfaultxavi Tags: #efl Differential Revision: https://phab.enlightenment.org/D10601
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c
index 3a84e0ac0b..ead40d8f75 100644
--- a/src/bin/eolian/headers.c
+++ b/src/bin/eolian/headers.c
@@ -168,7 +168,7 @@ _gen_func(const Eolian_State *state, const Eolian_Function *fid,
eina_strbuf_append(buf, "void");
eina_strbuf_append(buf, ")");
- if (!eolian_function_return_allow_unused(fid, ftype))
+ if (!eolian_function_return_allow_unused(fid, ftype) || return_move)
{
if (!flagbuf)
flagbuf = eina_strbuf_new();