Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Fix a compiler warning. #679

Closed balazske closed 5 years ago

balazske commented 5 years ago

Following warning is fixed:

[51/208] Building CXX object tools/clang/lib/AST/CMakeFiles/clangAST.dir/ASTImporter.cpp.o
llvm/tools/clang/lib/AST/ASTImporter.cpp: In member function ‘clang::ExpectedDecl clang::ASTNodeImporter::VisitFunctionDecl(clang::FunctionDecl*)’:
llvm/tools/clang/lib/AST/ASTImporter.cpp:3100:15: warning: unused variable ‘MD’ [-Wunused-variable]
     if (auto *MD = dyn_cast<CXXMethodDecl>(FoundByLookup)) {
               ^

(Additional code format change is made.)