fix build-break in case secure log is disable
[adaptation/xorg/driver/xserver-xorg-module-xdbg.git] / lib / xdbg_log.h
index 5cf4668..bf25260 100644 (file)
@@ -118,7 +118,7 @@ void* xDbgLog            (unsigned int module, int logoption, const char *file,
 #ifdef _SECURE_LOG
 #define XDBG_SECURE(mod, fmt, ARG...)     XLOG_SECURE(mod, "[%s] "fmt, __FUNCTION__, ##ARG)
 #else
-#define XDBG_SECURE(mod, fmt, ARG...)     (0)
+#define XDBG_SECURE(mod, fmt, ARG...)     do { } while(0)
 #endif
 
 #define XDBG_NEVER_GET_HERE(mod)          XLOG_ERROR(mod, "[%s:%d] ** NEVER GET HERE **\n", __FUNCTION__,__LINE__)