diff options
author | Alan Modra <amodra@gmail.com> | 2004-10-10 13:58:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-10-10 13:58:05 +0000 |
commit | f12123c0d5ef931a2617b4b3bdb877556133c206 (patch) | |
tree | 483f9e7ea7bae9cb116dc8214e156ba7a620b295 /bfd/libbfd-in.h | |
parent | 3472e2e9990e20e2ab0b3326ee7a4c87acd3d715 (diff) | |
download | gdb-f12123c0d5ef931a2617b4b3bdb877556133c206.zip gdb-f12123c0d5ef931a2617b4b3bdb877556133c206.tar.gz gdb-f12123c0d5ef931a2617b4b3bdb877556133c206.tar.bz2 |
* libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
* libbfd.h: Regnerate.
* elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
* elf32-frv.c: Likewise.
* elf32-m32r.c: Likewise.
* elf32-ppc.c: Likewise.
* elf64-hppa.c: Likewise.
* elfxx-ia64.c: Likewise.
* opncls.c: Likewise.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 95399dc..86e6942 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -595,10 +595,10 @@ void bfd_assert (const char*,int); #define BFD_ASSERT(x) \ - { if (!(x)) bfd_assert(__FILE__,__LINE__); } + do { if (!(x)) bfd_assert(__FILE__,__LINE__); } while (0) #define BFD_FAIL() \ - { bfd_assert(__FILE__,__LINE__); } + do { bfd_assert(__FILE__,__LINE__); } while (0) extern void _bfd_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; |