[Lldb-commits] [lldb] r270377 - SymbolFile: remove an unused variable
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Sun May 22 13:16:54 PDT 2016
Author: compnerd
Date: Sun May 22 15:16:53 2016
New Revision: 270377
URL: http://llvm.org/viewvc/llvm-project?rev=270377&view=rev
Log:
SymbolFile: remove an unused variable
Address a -Wunused-but-set-variable warning from gcc. NFC.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp?rev=270377&r1=270376&r2=270377&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserJava.cpp Sun May 22 15:16:53 2016
@@ -468,7 +468,6 @@ DWARFASTParserJava::ParseChildMembers(co
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(co
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
More information about the lldb-commits
mailing list