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 ffd0efc..a636115 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;
        }