Skip to content

Commit

Permalink
Merge pull request #4230 from ktf/fix-unused-variable
Browse files Browse the repository at this point in the history
Drop unused variable.
  • Loading branch information
ktf committed Jun 13, 2014
2 parents 825bfd2 + 060c3b2 commit 8b1e26c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/StaticAnalyzers/src/FunctionChecker.cpp
Expand Up @@ -170,7 +170,7 @@ void FunctionChecker::checkASTDecl(const FunctionDecl *FD, AnalysisManager& mgr,
if ( dname.compare(dname.size()-1,1,"_") != 0 ) return;
llvm::raw_string_ostream os(buf);
os << "function '"<< dname << "' is in an extern \"C\" context and most likely accesses or modifies fortran variables in a 'COMMONBLOCK'.\n";
clang::ento::PathDiagnosticLocation FDLoc = clang::ento::PathDiagnosticLocation::createBegin(FD, BR.getSourceManager());
clang::ento::PathDiagnosticLocation::createBegin(FD, BR.getSourceManager());
// BR.EmitBasicReport(FD, "FunctionChecker : COMMONBLOCK variable accessed or modified","ThreadSafety",os.str(), FDLoc);
std::string ostring = "function '" + dname + "' static variable 'COMMONBLOCK'.\n";
const char * pPath = std::getenv("LOCALRT");
Expand Down

0 comments on commit 8b1e26c

Please sign in to comment.