aboutsummaryrefslogtreecommitdiff
path: root/gold/incremental.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-08-19 00:02:18 +0000
committerIan Lance Taylor <ian@airs.com>2010-08-19 00:02:18 +0000
commit56f75c03fc85f2ce65c85793eba9a7cef1666f3c (patch)
treeb0b70a623405a61671d9e2f8c68270c45e079d53 /gold/incremental.cc
parent561ff6a44410bb1c02a92f5f93ecb8f6550aa66f (diff)
downloadfsf-binutils-gdb-56f75c03fc85f2ce65c85793eba9a7cef1666f3c.zip
fsf-binutils-gdb-56f75c03fc85f2ce65c85793eba9a7cef1666f3c.tar.gz
fsf-binutils-gdb-56f75c03fc85f2ce65c85793eba9a7cef1666f3c.tar.bz2
* incremental.cc
(Output_section_incremental_inputs::write_input_files): Add cast to avoid signed/unsigned comparison warning. (Output_section_incremental_inputs::write_info_blocks): Likewise.
Diffstat (limited to 'gold/incremental.cc')
-rw-r--r--gold/incremental.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gold/incremental.cc b/gold/incremental.cc
index b2ec781..5a1d3d9 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -784,7 +784,7 @@ Output_section_incremental_inputs<size, big_endian>::write_input_files(
p != inputs->input_files().end();
++p)
{
- gold_assert(pov - oview == (*p)->get_offset());
+ gold_assert(static_cast<unsigned int>(pov - oview) == (*p)->get_offset());
section_offset_type filename_offset =
strtab->get_offset_from_key((*p)->get_filename_key());
const Timespec& mtime = (*p)->get_mtime();
@@ -827,7 +827,8 @@ Output_section_incremental_inputs<size, big_endian>::write_info_blocks(
case INCREMENTAL_INPUT_OBJECT:
case INCREMENTAL_INPUT_ARCHIVE_MEMBER:
{
- gold_assert(pov - oview == (*p)->get_info_offset());
+ gold_assert(static_cast<unsigned int>(pov - oview)
+ == (*p)->get_info_offset());
Incremental_object_entry* entry = (*p)->object_entry();
gold_assert(entry != NULL);
const Object* obj = entry->object();
@@ -897,7 +898,8 @@ Output_section_incremental_inputs<size, big_endian>::write_info_blocks(
case INCREMENTAL_INPUT_SHARED_LIBRARY:
{
- gold_assert(pov - oview == (*p)->get_info_offset());
+ gold_assert(static_cast<unsigned int>(pov - oview)
+ == (*p)->get_info_offset());
Incremental_object_entry* entry = (*p)->object_entry();
gold_assert(entry != NULL);
const Object* obj = entry->object();
@@ -920,7 +922,8 @@ Output_section_incremental_inputs<size, big_endian>::write_info_blocks(
case INCREMENTAL_INPUT_ARCHIVE:
{
- gold_assert(pov - oview == (*p)->get_info_offset());
+ gold_assert(static_cast<unsigned int>(pov - oview)
+ == (*p)->get_info_offset());
Incremental_archive_entry* entry = (*p)->archive_entry();
gold_assert(entry != NULL);