diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-18 22:23:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-18 22:23:55 +0000 |
commit | 7c53ca6e03833adab4465462b7d5c888741b715d (patch) | |
tree | 0bfa5dd3e46d6a13c41af8a656cac2a98d3e43c6 /test/Sema/flexible-array-init.c | |
parent | 90dafa1638edaffbba4b50f504d1470428a2d25d (diff) | |
download | clang-7c53ca6e03833adab4465462b7d5c888741b715d.tar.gz |
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
Diffstat (limited to 'test/Sema/flexible-array-init.c')
-rw-r--r-- | test/Sema/flexible-array-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
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}}; |