diff options
author | Timur Kristóf <[email protected]> | 2019-10-25 10:44:23 +0200 |
---|---|---|
committer | Timur Kristóf <[email protected]> | 2019-10-25 12:44:44 +0200 |
commit | f091b028251fb38d9555b90ca25c5d616dc94c72 (patch) | |
tree | 78732b86209a00b80265a4f77d45c151e92029f7 /src/gallium/state_trackers | |
parent | c580f134ae5d7e9f24e8b1bfc405825b5d413414 (diff) |
st/nine: Fix build with -Werror=empty-body
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1995
Fixes: 8d43e2b2ded0fe3c82d4 ("meson: add -Werror=empty-body to disallow `if(x);`")
Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_debug.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/nine/nine_debug.h b/src/gallium/state_trackers/nine/nine_debug.h index 2bbb73ef96a..905568d0d17 100644 --- a/src/gallium/state_trackers/nine/nine_debug.h +++ b/src/gallium/state_trackers/nine/nine_debug.h @@ -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__) |