From 702adfde11a7d44a78227de9d44f1038c8b57fdb Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Thu, 11 Jun 2015 17:31:12 +0200 Subject: Turn the error on anonymous structs/unions into a warning. Otherwise we get too many errors on glibc's standard headers. A real error will occur when the anonymous struct/union is accessed. --- cparser/Elab.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cparser') diff --git a/cparser/Elab.ml b/cparser/Elab.ml index bcf90f5e..aa015b83 100644 --- a/cparser/Elab.ml +++ b/cparser/Elab.ml @@ -640,7 +640,7 @@ and elab_field_group env (Field_group (spec, fieldlist, loc)) = error loc "non-default storage in struct or union"; if fieldlist = [] then if is_anonymous_composite spec then - error loc "ISO C99 does not support anonymous structs/unions" + warning loc "ISO C99 does not support anonymous structs/unions" else warning loc "declaration does not declare any members"; -- cgit