Commit a4156b88 by Brendan Kehoe Committed by Brendan Kehoe

decl.c (grokdeclarator): Only warn about non-zero arrays if !in_system_header…

decl.c (grokdeclarator): Only warn about non-zero arrays if !in_system_header (linux socketbits.h can...

	* decl.c (grokdeclarator): Only warn about non-zero arrays if
	!in_system_header (linux socketbits.h can give this for
	__cmsg_data, which is using a GNU extension).

From-SVN: r29842
parent 2ee2956a
1999-10-06 Brendan Kehoe <brendan@cygnus.com>
* decl.c (grokdeclarator): Only warn about non-zero arrays if
!in_system_header (linux socketbits.h can give this for
__cmsg_data, which is using a GNU extension).
1999-10-05 Mark Mitchell <mark@codesourcery.com>
* decl2.c (start_static_storage_duration_function): Push the
......
......@@ -9883,7 +9883,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
dname);
size = integer_one_node;
}
if (pedantic && integer_zerop (size))
if (pedantic && !in_system_header && integer_zerop (size))
cp_pedwarn ("ANSI C++ forbids zero-size array `%D'", dname);
if (TREE_CONSTANT (size))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment