From 67ab46b5801c3dd75e24fd0d8ae3c5c538197438 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 15 Jan 2019 00:04:15 +0100 Subject: [PATCH] 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 --- src/lib/eolian/database_validate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.7.4