tests: fix self-dump validation
[m6w6/ext-psi] / src / types / decl_struct.c
index d5309b9cb041d95337bfe3cbd3db0286bed78f5b..fab2817669690c0ea7e208795d52eaf73f759f7e 100644 (file)
@@ -92,6 +92,11 @@ bool psi_decl_struct_validate(struct psi_data *data, struct psi_decl_struct *s,
        }
 
        if (!s->size && !psi_plist_count(s->args)) {
        }
 
        if (!s->size && !psi_plist_count(s->args)) {
+               /* TODO: return true and check those structs are only used by address */
+               /* suppress needless warning
+               data->error(data, s->token, PSI_WARNING, "Empty struct %s",
+                               s->name);
+                               */
                return false;
        }
 
                return false;
        }