From 88032c62189700853242edfccd8a3d64945007d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Fri, 22 Nov 2013 14:24:32 +0100 Subject: [PATCH] use a do{}while(0) guard in TRACEF when DEBUG is not defined --- include/ucore/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ucore/utils.h b/include/ucore/utils.h index e70327c..0b2e358 100644 --- a/include/ucore/utils.h +++ b/include/ucore/utils.h @@ -94,7 +94,7 @@ const typeof( ((const type *)0)->member ) *__mptr = (ptr); \ fflush(stdout);\ } while(0) #else - #define TRACEF(fmt, ...) + #define TRACEF(fmt, ...) do {} while(0) #endif /**