summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-04-28 19:46:58 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2020-04-28 19:50:45 +0200
commit2a9d28291b414c9da5f5c56960b7d7c660889ea3 (patch)
tree6df13cc7760bcd8ab8fbc611dfbc17f6e460d79e
parentd0dbc48f1ba8e4a6b725741a3db4a1d67c703a48 (diff)
eolian_gen: hack around function pointers generating unused params
-rw-r--r--src/bin/eolian/sources.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/eolian/sources.c b/src/bin/eolian/sources.c
index 26e031f4c7..8ba401851b 100644
--- a/src/bin/eolian/sources.c
+++ b/src/bin/eolian/sources.c
@@ -320,6 +320,13 @@ _gen_function_param_fallback(Eina_Iterator *itr, Eina_Strbuf *fallback_free_owne
320 if (!eolian_parameter_is_move(pr) || eolian_parameter_direction_get(pr) == EOLIAN_PARAMETER_OUT) 320 if (!eolian_parameter_is_move(pr) || eolian_parameter_direction_get(pr) == EOLIAN_PARAMETER_OUT)
321 { 321 {
322 eina_strbuf_append_printf(fallback_free_ownership, " (void)%s;\n", eolian_parameter_name_get(pr)); 322 eina_strbuf_append_printf(fallback_free_ownership, " (void)%s;\n", eolian_parameter_name_get(pr));
323 /* FIXME: quick hack to avoid warnings, but should be rewritten properly */
324 if (eolian_type_typedecl_get(type) &&
325 eolian_typedecl_type_get(eolian_type_typedecl_get(type)) == EOLIAN_TYPEDECL_FUNCTION_POINTER)
326 {
327 eina_strbuf_append_printf(fallback_free_ownership, " (void)%s_data;\n", eolian_parameter_name_get(pr));
328 eina_strbuf_append_printf(fallback_free_ownership, " (void)%s_free_cb;\n", eolian_parameter_name_get(pr));
329 }
323 continue; 330 continue;
324 } 331 }
325 332