From 7c53ca6e03833adab4465462b7d5c888741b715d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 18 Feb 2009 22:23:55 +0000 Subject: Downgrade the "excess elements in initializer" errors to warnings *in C*. They're required errors in C++. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64964 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/flexible-array-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Sema/flexible-array-init.c') diff --git a/test/Sema/flexible-array-init.c b/test/Sema/flexible-array-init.c index 909b856d17..fff5fee2af 100644 --- a/test/Sema/flexible-array-init.c +++ b/test/Sema/flexible-array-init.c @@ -4,7 +4,7 @@ struct one { int values[]; } x = {5, {1, 2, 3}}; -struct one x2 = { 5, 1, 2, 3 }; // expected-error{{excess elements in struct initializer}} +struct one x2 = { 5, 1, 2, 3 }; // expected-warning{{excess elements in struct initializer}} void test() { struct one x3 = {5, {1, 2, 3}}; -- cgit v1.2.1