diff --git a/hw/serial.c b/hw/serial.c index 49431b2388..f09ce0ac01 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 743cfc54d3..824a685517 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) {