From f19ac0ede900dae8188eae0362027e60bfa82a32 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 8 Apr 2010 21:33:23 +0000 Subject: 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 --- clang/test/SemaCXX/class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/SemaCXX/class.cpp') diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp index 508ca4d7652..7eea67ad445 100644 --- a/clang/test/SemaCXX/class.cpp +++ b/clang/test/SemaCXX/class.cpp @@ -103,7 +103,7 @@ void ogfn() // PR3020: This used to crash due to double ownership of C4. struct C4; - C4; // expected-error {{declaration does not declare anything}} + C4; // expected-warning {{declaration does not declare anything}} } struct C4 { -- cgit v1.2.3