summaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-21 14:25:09 +0000
committerNick Clifton <nickc@redhat.com>2001-09-21 14:25:09 +0000
commit6a22fa997f6726d28327d0c1a4d52272b8c3fafc (patch)
tree820d8f58dca6ee417785c2ee8d7e071b8173cbe3 /bfd/libbfd.c
parent32056569e11045e0f7898d6e3aa205a1f05685f9 (diff)
downloadgdb-6a22fa997f6726d28327d0c1a4d52272b8c3fafc.tar.gz
Fix compile time warnings
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r--bfd/libbfd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index f7320cc4e2f..5aa51aee272 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -581,8 +581,7 @@ bfd_bwrite (ptr, size, abfd)
if (nwrote != size)
{
#ifdef ENOSPC
- if (nwrote >= 0)
- errno = ENOSPC;
+ errno = ENOSPC;
#endif
bfd_set_error (bfd_error_system_call);
}
@@ -869,14 +868,14 @@ DESCRIPTION
. BFD_SEND(abfd, bfd_getx_signed_64, (ptr))
.
.#define bfd_get(bits, abfd, ptr) \
-. ((bits) == 8 ? bfd_get_8 (abfd, ptr) \
+. ( (bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \
. : (bits) == 16 ? bfd_get_16 (abfd, ptr) \
. : (bits) == 32 ? bfd_get_32 (abfd, ptr) \
. : (bits) == 64 ? bfd_get_64 (abfd, ptr) \
. : (abort (), (bfd_vma) - 1))
.
.#define bfd_put(bits, abfd, val, ptr) \
-. ((bits) == 8 ? bfd_put_8 (abfd, val, ptr) \
+. ( (bits) == 8 ? bfd_put_8 (abfd, val, ptr) \
. : (bits) == 16 ? bfd_put_16 (abfd, val, ptr) \
. : (bits) == 32 ? bfd_put_32 (abfd, val, ptr) \
. : (bits) == 64 ? bfd_put_64 (abfd, val, ptr) \