diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-08 21:33:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-08 21:33:23 +0000 |
commit | f19ac0ede900dae8188eae0362027e60bfa82a32 (patch) | |
tree | fb13a15dbe02acb3e93a7de7a30bdfb70975fd1b /clang/test/SemaCXX/anonymous-union.cpp | |
parent | d9235dbc02f6b7054952b25a22c16670dfa8cb92 (diff) | |
download | bcm5719-llvm-f19ac0ede900dae8188eae0362027e60bfa82a32.tar.gz bcm5719-llvm-f19ac0ede900dae8188eae0362027e60bfa82a32.zip |
Downgrade the "declaration does not declare anything" error to a
warning. It's not harmful to have such pointless declarations, and GCC
does not diagnose this issue consistently.
llvm-svn: 100814
Diffstat (limited to 'clang/test/SemaCXX/anonymous-union.cpp')
-rw-r--r-- | clang/test/SemaCXX/anonymous-union.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/anonymous-union.cpp b/clang/test/SemaCXX/anonymous-union.cpp index 0590db28d83..5c34e016e57 100644 --- a/clang/test/SemaCXX/anonymous-union.cpp +++ b/clang/test/SemaCXX/anonymous-union.cpp @@ -110,7 +110,7 @@ struct BadMembers { }; // <rdar://problem/6481130> -typedef union { }; // expected-error{{declaration does not declare anything}} +typedef union { }; // expected-warning{{declaration does not declare anything}} // <rdar://problem/7562438> typedef struct objc_module *Foo ; |