summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 17:41:22 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-26 17:41:22 +0200
commit13ddc5dbc165f3fead4a70301073bc901dbc1269 (patch)
tree2d4022f6bf3ffcf332efae28aae436e9b9a6f678 /src/bin/eolian
parentd0fed247bbb18933b3d5c086126ac0f7b8d05e76 (diff)
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/eolian')
-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 9da3d74..7aab755 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,
160 eina_strbuf_append(buf, "void"); 160 eina_strbuf_append(buf, "void");
161 161
162 eina_strbuf_append(buf, ")"); 162 eina_strbuf_append(buf, ")");
163 if (eolian_function_return_is_warn_unused(fid, ftype)) 163 if (!eolian_function_return_allow_unused(fid, ftype))
164 { 164 {
165 if (!flagbuf) 165 if (!flagbuf)
166 flagbuf = eina_strbuf_new(); 166 flagbuf = eina_strbuf_new();