From: Marcel Hollerbach Date: Mon, 14 Jan 2019 23:04:15 +0000 (+0100) Subject: eolian: add free functions for the array and future. X-Git-Tag: submit/tizen/20190128.112154~120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67ab46b5801c3dd75e24fd0d8ae3c5c538197438;p=platform%2Fupstream%2Fefl.git eolian: add free functions for the array and future. It appears that NULL is not really usefull here, as this will lead to errors later on. (void) will force the free function to just do nothing and be later converted to a NOP. Reviewed-by: Daniel Kolesa Differential Revision: https://phab.enlightenment.org/D7629 --- diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c index 23c3f2a..11899a9 100644 --- a/src/lib/eolian/database_validate.c +++ b/src/lib/eolian/database_validate.c @@ -184,9 +184,9 @@ _validate_typedecl(Validate_State *vals, Eolian_Typedecl *tp) static const char * const eo_complex_frees[] = { - "eina_accessor_free", "eina_array_free", NULL, /* future */ + "eina_accessor_free", "eina_array_free", "(void)", /* future */ "eina_iterator_free", "eina_hash_free", - "eina_list_free", "eina_inarray_free", NULL + "eina_list_free", "eina_inarray_free", "(void)" }; static const char *eo_obj_free = "efl_del";