OSDN Git Service

PR testsuite/25171
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Jan 2006 23:45:49 +0000 (23:45 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Jan 2006 23:45:49 +0000 (23:45 +0000)
* c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
of bit-field" when in system header.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109990 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-decl.c

index 7ed92c2..bc65db8 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR testsuite/25171
+       * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
+       of bit-field" when in system header.
+
 2006-01-19  DJ Delorie  <dj@redhat.com>
 
        * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
index d3bf142..db906b4 100644 (file)
@@ -3784,6 +3784,7 @@ check_bitfield_type_and_width (tree *type, tree *width, const char *orig_name)
 
   type_mv = TYPE_MAIN_VARIANT (*type);
   if (pedantic
+      && !in_system_header
       && type_mv != integer_type_node
       && type_mv != unsigned_type_node
       && type_mv != boolean_type_node)