eolian: add free functions for the array and future.
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 14 Jan 2019 23:04:15 +0000 (00:04 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:17 +0000 (14:20 +0900)
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 <daniel@octaforge.org>
Differential Revision: https://phab.enlightenment.org/D7629

src/lib/eolian/database_validate.c

index 23c3f2a..11899a9 100644 (file)
@@ -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";