From: Michael Wallner Date: Tue, 17 Oct 2017 08:49:11 +0000 (+0200) Subject: avoid warning of empty struct decls X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6708d7f169e6675203bf63568d40e888a4f4e209;p=m6w6%2Fext-psi avoid warning of empty struct decls --- diff --git a/src/types/decl_struct.c b/src/types/decl_struct.c index ffd0efc..a636115 100644 --- a/src/types/decl_struct.c +++ b/src/types/decl_struct.c @@ -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; }