+2010-08-18 Ian Lance Taylor <iant@google.com>
+
+ * 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.
+
2010-08-12 Cary Coutant <ccoutant@google.com>
* common.cc (Sort_commons::operator()): Remove unnecessary code.
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();
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();
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();
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);