diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2019-05-26 17:41:22 +0200 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2019-05-26 17:41:22 +0200 |
commit | 13ddc5dbc165f3fead4a70301073bc901dbc1269 (patch) | |
tree | 2d4022f6bf3ffcf332efae28aae436e9b9a6f678 /src/bin | |
parent | d0fed247bbb18933b3d5c086126ac0f7b8d05e76 (diff) | |
download | efl-13ddc5dbc165f3fead4a70301073bc901dbc1269.tar.gz |
eolian: rename @warn_unused and its associated API
@warn_unused in syntax is now called @no_unused - this is because
"warning about unused" is a C thing (or rather, an extension to C)
and various languages might want to use stricter behavior for this.
Its associated API does the reverse now - it lets you query whether
being unused is allowed at all. This is to match future behavior
of Eolian (once it supports versioning) that will likely reverse it.
@feature
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/eolian/headers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/headers.c b/src/bin/eolian/headers.c index 9da3d74d49..7aab7552ef 100644 --- a/src/bin/eolian/headers.c +++ b/src/bin/eolian/headers.c @@ -160,7 +160,7 @@ _gen_func(const Eolian_State *state, const Eolian_Function *fid, eina_strbuf_append(buf, "void"); eina_strbuf_append(buf, ")"); - if (eolian_function_return_is_warn_unused(fid, ftype)) + if (!eolian_function_return_allow_unused(fid, ftype)) { if (!flagbuf) flagbuf = eina_strbuf_new(); |