mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-06 11:09:37 +00:00
Remove wrong semicolon in macro definition
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>
This commit is contained in:
parent
b6601141cd
commit
46411f863c
|
@ -101,10 +101,10 @@
|
||||||
|
|
||||||
#ifdef DEBUG_SERIAL
|
#ifdef DEBUG_SERIAL
|
||||||
#define DPRINTF(fmt, ...) \
|
#define DPRINTF(fmt, ...) \
|
||||||
do { fprintf(stderr, "serial: " fmt , ## __VA_ARGS__); } while (0);
|
do { fprintf(stderr, "serial: " fmt , ## __VA_ARGS__); } while (0)
|
||||||
#else
|
#else
|
||||||
#define DPRINTF(fmt, ...) \
|
#define DPRINTF(fmt, ...) \
|
||||||
do {} while(0);
|
do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct SerialFIFO {
|
typedef struct SerialFIFO {
|
||||||
|
|
|
@ -41,7 +41,7 @@ do { \
|
||||||
cris_tst_mov_cc(n, z); \
|
cris_tst_mov_cc(n, z); \
|
||||||
if (r != expected) \
|
if (r != expected) \
|
||||||
err(); \
|
err(); \
|
||||||
} while(0);
|
} while(0)
|
||||||
|
|
||||||
void check_swap(void)
|
void check_swap(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue