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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user