aboutsummaryrefslogtreecommitdiff
path: root/gold/dwp.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-03-21 02:00:16 +0000
committerAlan Modra <amodra@gmail.com>2013-03-21 02:00:16 +0000
commit117be58fad705e4df95c2e0bb2f3d46aa132eb20 (patch)
tree4cf3236018200fd0db73d441a1db85523b8ab882 /gold/dwp.cc
parentaf307d6a5be2ede3aed5f5ca5d726658605fa783 (diff)
downloadbinutils-117be58fad705e4df95c2e0bb2f3d46aa132eb20.zip
binutils-117be58fad705e4df95c2e0bb2f3d46aa132eb20.tar.gz
binutils-117be58fad705e4df95c2e0bb2f3d46aa132eb20.tar.bz2
* dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsigned
comparison warning. * layout.cc (Layout::create_dynamic_symtab): Avoid "may be used uninitialized" warning.
Diffstat (limited to 'gold/dwp.cc')
-rw-r--r--gold/dwp.cc2
1 files changed, 1 insertions, 1 deletions
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<size_t>(section_id) < this->section_id_map_.size());
unsigned int shndx = this->section_id_map_[section_id];
// Create the section if necessary.