diff options
author | Ken Raeburn <raeburn@cygnus> | 1995-07-12 22:00:57 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1995-07-12 22:00:57 +0000 |
commit | b818a3257f3b8b69ec3ba1d2e1bb2b355ece630b (patch) | |
tree | 385cb2605b377dc3de4847bc393116b1b4d3f05b /bfd/elflink.h | |
parent | f7da4a99d4105687052257a9e752a278a97c1964 (diff) | |
download | gdb-b818a3257f3b8b69ec3ba1d2e1bb2b355ece630b.zip gdb-b818a3257f3b8b69ec3ba1d2e1bb2b355ece630b.tar.gz gdb-b818a3257f3b8b69ec3ba1d2e1bb2b355ece630b.tar.bz2 |
fix some compilation warnings from sun cc
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 6cfdff4..2efbdda 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -397,8 +397,9 @@ elf_link_add_object_symbols (abfd, info) struct bfd_elf_link_needed_list *n, **pn; char *fnm, *anm; - n = bfd_alloc (abfd, - sizeof (struct bfd_elf_link_needed_list)); + n = (struct bfd_elf_link_needed_list *) + bfd_alloc (abfd, + sizeof (struct bfd_elf_link_needed_list)); fnm = bfd_elf_string_from_elf_section (abfd, link, dyn.d_un.d_val); if (n == NULL || fnm == NULL) |