eolian_gen: mark empty setter value params as unused

This commit is contained in:
Daniel Kolesa 2020-04-28 19:47:26 +02:00
parent 2a9d28291b
commit b850c44653
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
eina_strbuf_append_char(params_full_imp, ' ');
eina_strbuf_append(params_full_imp, add_star);
eina_strbuf_append(params_full_imp, prn);
if (!dfv && is_empty)
if ((!dfv || ftype == EOLIAN_PROP_SET) && is_empty)
eina_strbuf_append(params_full_imp, " EINA_UNUSED");
eina_strbuf_append(params, prn);