Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nvptx-ld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ This program has absolutely no warranty.\n";
char *buf = XNEWVEC (char, len + 1);
size_t read_len = fread (buf, 1, len, f);
buf[len] = '\0';
if (read_len != len || ferror (f))
if (read_len != static_cast<size_t>(len) || ferror (f))
{
std::cerr << "error reading " << name << "\n";
fclose (f);
Expand Down
6 changes: 3 additions & 3 deletions nvptx-nm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ numeric_reverse (const void *x, const void *y)
return - numeric_forward (x, y);
}

static int (*(sorters[2][2])) (const void *, const void *) =
static int (*sorters[2][2]) (const void *, const void *) =
{
{ non_numeric_forward, non_numeric_reverse },
{ numeric_forward, numeric_reverse }
Expand Down Expand Up @@ -461,7 +461,7 @@ print_symbols (symbol_hash_entry **minisyms,
}

static void
display_rel_file (std::list<htab_t> &symbol_tables, const std::string &name)
display_rel_file (std::list<htab_t> &symbol_tables, const std::string &/*name*/)
{
size_t symcount = 0;
for (std::list<htab_t>::iterator it = symbol_tables.begin ();
Expand Down Expand Up @@ -667,7 +667,7 @@ This program has absolutely no warranty.\n";
char *buf = new char[len + 1];
size_t read_len = fread (buf, 1, len, f);
buf[len] = '\0';
if (read_len != len || ferror (f))
if (read_len != static_cast<size_t>(len) || ferror (f))
{
std::cerr << "error reading " << name << "\n";
fclose (f);
Expand Down