st/nine: Fix build with -Werror=empty-body
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1995
Fixes: 8d43e2b2de
("meson: add -Werror=empty-body to disallow `if(x);`")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
@@ -44,15 +44,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__)
|
||||
|
||||
|
Reference in New Issue
Block a user