From f12123c0d5ef931a2617b4b3bdb877556133c206 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 10 Oct 2004 13:58:05 +0000 Subject: * 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. --- bfd/libbfd-in.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bfd/libbfd-in.h') 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; -- cgit v1.1