summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/state_trackers/nine/nine_debug.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-08-26 06:03:18 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-08-26 06:03:18 +0000
commitaf5e8f5366b05c3d4f8521f318c143a5c5dc3ea9 (patch)
treec5691445908b1beca9facf0e5e3c5d7f35f74228 /lib/mesa/src/gallium/state_trackers/nine/nine_debug.h
parent27c93456b58343162f7c4ad20ca6bea0c9a91646 (diff)
Merge Mesa 20.1.6
Diffstat (limited to 'lib/mesa/src/gallium/state_trackers/nine/nine_debug.h')
-rw-r--r--lib/mesa/src/gallium/state_trackers/nine/nine_debug.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/mesa/src/gallium/state_trackers/nine/nine_debug.h b/lib/mesa/src/gallium/state_trackers/nine/nine_debug.h
index 2bbb73ef9..75e412497 100644
--- a/lib/mesa/src/gallium/state_trackers/nine/nine_debug.h
+++ b/lib/mesa/src/gallium/state_trackers/nine/nine_debug.h
@@ -24,6 +24,7 @@
#define _NINE_DEBUG_H_
#include "util/u_debug.h"
+#include "pipe/p_compiler.h"
void
_nine_debug_printf( unsigned long flag,
@@ -44,15 +45,15 @@ _nine_debug_printf( unsigned long flag,
} \
} while(0)
#else
-#define WARN(fmt, ...)
-#define WARN_ONCE(fmt, ...)
+#define WARN(fmt, ...) do {} while(0)
+#define WARN_ONCE(fmt, ...) do {} while(0)
#endif
#if defined(DEBUG) || !defined(NDEBUG)
#define DBG_FLAG(flag, fmt, ...) \
_nine_debug_printf(flag, __FUNCTION__, fmt, ## __VA_ARGS__)
#else
-#define DBG_FLAG(flag, fmt, ...)
+#define DBG_FLAG(flag, fmt, ...) do {} while(0)
#endif
#define DBG(fmt, ...) DBG_FLAG(DBG_CHANNEL, fmt, ## __VA_ARGS__)
@@ -116,7 +117,7 @@ _nine_stub( const char *file,
#define user_warn(x) \
if ((x)) { DBG_FLAG(DBG_USER, "User warning: `%s'\n", #x); }
#else
-#define user_warn(x)
+#define user_warn(x) do {} while(0)
#endif
/* nonfatal assert */