From: Davide Italiano Date: Wed, 11 Jan 2017 19:05:27 +0000 (+0000) Subject: [lib/Object] Unbreak build with -Werror (unused variable). NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83229eeee3d299b73ef9a27540f657d06eac398f;p=llvm [lib/Object] Unbreak build with -Werror (unused variable). NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291691 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Object/Decompressor.cpp b/lib/Object/Decompressor.cpp index fc9beca4641..bca41fd9f48 100644 --- a/lib/Object/Decompressor.cpp +++ b/lib/Object/Decompressor.cpp @@ -79,7 +79,7 @@ bool Decompressor::isGnuStyle(StringRef Name) { bool Decompressor::isCompressed(const object::SectionRef &Section) { StringRef Name; - if (std::error_code E = Section.getName(Name)) + if (Section.getName(Name)) return false; return Section.isCompressed() || isGnuStyle(Name); }