Received: from [140.186.70.92] (port=57131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvXI6-0004nL-0P for qemu-devel@nongnu.org; Tue, 14 Sep 2010 11:19:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvXI0-0000Xa-Hn for qemu-devel@nongnu.org; Tue, 14 Sep 2010 11:19:21 -0400 Received: from mail-ey0-f173.google.com ([209.85.215.173]:48932) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvXI0-0000XM-Dd for qemu-devel@nongnu.org; Tue, 14 Sep 2010 11:19:20 -0400 Received: by eyf18 with SMTP id 18so3621474eyf.4 for ; Tue, 14 Sep 2010 08:19:19 -0700 (PDT) Date: Tue, 14 Sep 2010 17:19:14 +0200 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] [PATCH] Remove wrong semicolon in macro definition Message-ID: <20100914151914.GA21767@laped.lan> References: <1284405717-18928-1-git-send-email-weil@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1284405717-18928-1-git-send-email-weil@mail.berlios.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers On Mon, Sep 13, 2010 at 09:21:57PM +0200, Stefan Weil wrote: > Macros normally should not end with a semicolon, > otherwise their usage results in two statements > where only one statement was expected. Applied > > Signed-off-by: Stefan Weil > --- > hw/serial.c | 4 ++-- > tests/cris/check_swap.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/hw/serial.c b/hw/serial.c > index 49431b2..f09ce0a 100644 > --- a/hw/serial.c > +++ b/hw/serial.c > @@ -101,10 +101,10 @@ > > #ifdef DEBUG_SERIAL > #define DPRINTF(fmt, ...) \ > -do { fprintf(stderr, "serial: " fmt , ## __VA_ARGS__); } while (0); > +do { fprintf(stderr, "serial: " fmt , ## __VA_ARGS__); } while (0) > #else > #define DPRINTF(fmt, ...) \ > -do {} while(0); > +do {} while (0) > #endif > > typedef struct SerialFIFO { > diff --git a/tests/cris/check_swap.c b/tests/cris/check_swap.c > index 743cfc5..824a685 100644 > --- a/tests/cris/check_swap.c > +++ b/tests/cris/check_swap.c > @@ -41,7 +41,7 @@ do { \ > cris_tst_mov_cc(n, z); \ > if (r != expected) \ > err(); \ > -} while(0); > +} while(0) > > void check_swap(void) > { > -- > 1.7.0.4 > >