Author: uabelho Date: Tue Oct 2 22:41:14 2018 New Revision: 343661 URL: http://llvm.org/viewvc/llvm-project?rev=343661&view=rev Log: Fix compilation warning by removing unused variable [NFC]
clang complained with ../tools/clang/tools/extra/clangd/FS.cpp:19:12: error: unused variable 'Err' [-Werror,-Wunused-variable] if (auto Err = FS.makeAbsolute(PathStore)) ^ 1 error generated. Modified: clang-tools-extra/trunk/clangd/FS.cpp Modified: clang-tools-extra/trunk/clangd/FS.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/FS.cpp?rev=343661&r1=343660&r2=343661&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/FS.cpp (original) +++ clang-tools-extra/trunk/clangd/FS.cpp Tue Oct 2 22:41:14 2018 @@ -16,7 +16,7 @@ namespace clangd { void PreambleFileStatusCache::update(const vfs::FileSystem &FS, vfs::Status S) { SmallString<32> PathStore(S.getName()); - if (auto Err = FS.makeAbsolute(PathStore)) + if (FS.makeAbsolute(PathStore)) return; // Stores the latest status in cache as it can change in a preamble build. StatCache.insert({PathStore, std::move(S)}); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits