From 73669defedc32af0144e740932c0467d6aeb2055 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 25 Apr 2008 15:47:13 +0000 Subject: remove the 'unused static' diagnostic from codegen. This should be reimplemented in Sema someday. This is tracked in PR2236. Until then disabling it removes some bogus diagnostics (see 2236). llvm-svn: 50263 --- clang/lib/CodeGen/CodeGenModule.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 98a8aaaf86d4..7e5e8f06b707 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -355,14 +355,6 @@ void CodeGenModule::EmitStatics() { Changed = true; } } while (Changed); - - // Warn about all statics that are still unused at end of code generation. - for (unsigned i = 0, e = StaticDecls.size(); i != e; ++i) { - const NamedDecl *D = StaticDecls[i]; - std::string Msg = D->getName(); - getDiags().Report(Context.getFullLoc(D->getLocation()), - diag::warn_unused_static, &Msg, 1); - } } llvm::Constant *CodeGenModule::EmitGlobalInit(const Expr *Expr) { -- cgit v1.2.3