From 6708d7f169e6675203bf63568d40e888a4f4e209 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 17 Oct 2017 10:49:11 +0200 Subject: [PATCH] avoid warning of empty struct decls --- src/types/decl_struct.c | 2 -- 1 file changed, 2 deletions(-) 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; } -- 2.30.2