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 | cb821d045f5e445384f34d05a526955036073c4a (patch) | |
tree | df65855fc07b4d78aa1419c30edc2b9771644001 /test/Parser/cxx-class.cpp | |
parent | 7732cc9c0fdc97a2f8cce4e5933d8103213d1aef (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-class.cpp')
-rw-r--r-- | test/Parser/cxx-class.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp index 576e57d071..4abbbc5b9b 100644 --- a/test/Parser/cxx-class.cpp +++ b/test/Parser/cxx-class.cpp @@ -8,7 +8,7 @@ protected: struct S {}; enum {}; - int; // expected-error {{declaration does not declare anything}} + int; // expected-warning {{declaration does not declare anything}} int : 1, : 2; public: |