avoid warning of empty struct decls
authorMichael Wallner <mike@php.net>
Tue, 17 Oct 2017 08:49:11 +0000 (10:49 +0200)
committerMichael Wallner <mike@php.net>
Tue, 17 Oct 2017 08:49:11 +0000 (10:49 +0200)
src/types/decl_struct.c

index ffd0efc5d5df52bfb9de279cf111be668bf30d50..a636115d3412087525b29b5dea5556d36c7ccdab 100644 (file)
@@ -92,8 +92,6 @@ bool psi_decl_struct_validate(struct psi_data *data, struct psi_decl_struct *s,
        }
 
        if (!s->size && !psi_plist_count(s->args)) {
-               data->error(data, s->token, PSI_WARNING,
-                               "Cannot compute size of empty struct '%s'", s->name);
                return false;
        }