eolian: warn as much as possible at once for unimplemented funcs
authorDaniel Kolesa <d.kolesa@samsung.com>
Thu, 17 Jan 2019 13:15:00 +0000 (14:15 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:18 +0000 (14:20 +0900)
This also fixes some other potential errors, when there is a
failure about unimplemented methods but something up the stack
then uses those results.

src/lib/eolian/database_validate.c

index 5462f4abb283aad7a4b991304c0401bb22cd87f1..c89ca232b8962b953a37e4e8eff84651bb91f936 100644 (file)
@@ -1039,10 +1039,8 @@ _db_fill_inherits(Validate_State *vals, Eolian_Class *cl, Eina_Hash *fhash)
 
    /* verify that all methods are implemented on the class */
    if (!_db_check_implemented(vals, cl, fh))
-     {
-        eina_hash_free(fh);
-        return EINA_FALSE;
-     }
+     vals->warned = EINA_TRUE;
+
    eina_hash_free(fh);
 
    return EINA_TRUE;