From 3b0bde2c2ce023b5b9e750875ad5099aa4af59d9 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool <compnerd@compnerd.org> Date: Sun, 22 May 2016 20:16:53 +0000 Subject: [PATCH] SymbolFile: remove an unused variable Address a -Wunused-but-set-variable warning from gcc. NFC. llvm-svn: 270377 --- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp index 71290f2f879b..b21bf2ded489 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp @@ -468,7 +468,6 @@ DWARFASTParserJava::ParseChildMembers(const DWARFDIE &parent_die, CompilerType & DWARFFormValue encoding_uid; uint32_t member_byte_offset = UINT32_MAX; DWARFExpression member_location_expression(dwarf_cu); - bool artificial = true; DWARFAttributes attributes; size_t num_attributes = die.GetAttributes(attributes); @@ -494,7 +493,7 @@ DWARFASTParserJava::ParseChildMembers(const DWARFDIE &parent_die, CompilerType & member_byte_offset = form_value.Unsigned(); break; case DW_AT_artificial: - artificial = form_value.Boolean(); + static_cast<void>(form_value.Boolean()); break; case DW_AT_accessibility: // TODO: Handle when needed