Remove wrong semicolon in macro definition
authorStefan Weil <weil@mail.berlios.de>
Mon, 13 Sep 2010 19:21:57 +0000 (21:21 +0200)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 14 Sep 2010 08:58:38 +0000 (10:58 +0200)
Macros normally should not end with a semicolon,
otherwise their usage results in two statements
where only one statement was expected.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
hw/serial.c
tests/cris/check_swap.c

index 49431b2..f09ce0a 100644 (file)
 
 #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 {
index 743cfc5..824a685 100644 (file)
@@ -41,7 +41,7 @@ do {                                                    \
         cris_tst_mov_cc(n, z);                          \
        if (r != expected)                              \
                err();                                  \
-} while(0);
+} while(0)
 
 void check_swap(void)
 {