summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-02-20 16:18:49 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-03-03 14:09:56 +0200
commit10d7bffc4a7566aeb9600bbd317c2ce54ea99d06 (patch)
tree2ac1cb3687269e3b3f2b95c3055d7046adfb2e60 /src/bin
parent2db3cdb5e33ee4a4cf67408e2a9608d438419a2c (diff)
Eolian: support warn_unused variables.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian/legacy_generator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/eolian/legacy_generator.c b/src/bin/eolian/legacy_generator.c
index fcc858122a..f028f915f7 100644
--- a/src/bin/eolian/legacy_generator.c
+++ b/src/bin/eolian/legacy_generator.c
@@ -15,7 +15,7 @@ tmpl_eapi_funcdef[] = "\n\
15 *\n\ 15 *\n\
16@#list_desc_param\ 16@#list_desc_param\
17 */\n\ 17 */\n\
18EAPI @#type_return @#class_@#func(@#is_constEvas_Object *obj@#params);\n\ 18EAPI @#type_return @#class_@#func(@#is_constEvas_Object *obj@#params);@#flags\n\
19"; 19";
20 20
21/*@#CLASS_CHECK(obj) @#check_ret;\n\*/ 21/*@#CLASS_CHECK(obj) @#check_ret;\n\*/
@@ -127,6 +127,7 @@ _eapi_decl_func_generate(const char *classname, Eolian_Function funcid, Eolian_F
127 eina_strbuf_replace_all(fbody, "@#list_desc_param", eina_strbuf_string_get(descparam)); 127 eina_strbuf_replace_all(fbody, "@#list_desc_param", eina_strbuf_string_get(descparam));
128 eina_strbuf_replace_all(fbody, "@#type_return", (rettype) ? rettype : "void"); 128 eina_strbuf_replace_all(fbody, "@#type_return", (rettype) ? rettype : "void");
129 eina_strbuf_replace_all(fbody, "@#is_const", (ftype == GET || eolian_function_object_is_const(funcid)) ? "const " : ""); 129 eina_strbuf_replace_all(fbody, "@#is_const", (ftype == GET || eolian_function_object_is_const(funcid)) ? "const " : "");
130 eina_strbuf_replace_all(fbody, "@#flags", (eolian_function_return_is_warn_unused(funcid, ftype)) ? " EINA_WARN_UNUSED_RESULT" : "");
130 eina_strbuf_append(buf, eina_strbuf_string_get(fbody)); 131 eina_strbuf_append(buf, eina_strbuf_string_get(fbody));
131 132
132 eina_strbuf_free(fbody); 133 eina_strbuf_free(fbody);
@@ -288,7 +289,7 @@ legacy_header_generate(const char *classname, int eo_version, Eina_Strbuf *buf)
288 289
289 if (!prop_read && !prop_write) 290 if (!prop_read && !prop_write)
290 { 291 {
291 _eapi_decl_func_generate(classname, (Eolian_Function)data, UNRESOLVED, buf); 292 _eapi_decl_func_generate(classname, (Eolian_Function)data, METHOD_FUNC, buf);
292 } 293 }
293 if (prop_read) 294 if (prop_read)
294 { 295 {