From 117be58fad705e4df95c2e0bb2f3d46aa132eb20 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 21 Mar 2013 02:00:16 +0000 Subject: * dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsigned comparison warning. * layout.cc (Layout::create_dynamic_symtab): Avoid "may be used uninitialized" warning. --- gold/dwp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/dwp.cc') diff --git a/gold/dwp.cc b/gold/dwp.cc index eb9e152..c6453bf 100644 --- a/gold/dwp.cc +++ b/gold/dwp.cc @@ -1476,7 +1476,7 @@ Dwp_output_file::add_contribution(elfcpp::DW_SECT section_id, int align) { const char* section_name = get_dwarf_section_name(section_id); - gold_assert(section_id < this->section_id_map_.size()); + gold_assert(static_cast(section_id) < this->section_id_map_.size()); unsigned int shndx = this->section_id_map_[section_id]; // Create the section if necessary. -- cgit v1.1