amd: fix empty-body issues
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 8d43e2b2de ("meson: add -Werror=empty-body to disallow `if(x);`")
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
#define ADDR_DBG_BREAK() { __debugbreak(); }
|
||||
#endif
|
||||
#else
|
||||
#define ADDR_DBG_BREAK()
|
||||
#define ADDR_DBG_BREAK() do {} while(0)
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -147,15 +147,15 @@
|
||||
|
||||
#define ADDRDPF 1 ? (void)0 : (void)
|
||||
|
||||
#define ADDR_PRNT(a)
|
||||
#define ADDR_PRNT(a) do {} while(0)
|
||||
|
||||
#define ADDR_DBG_BREAK()
|
||||
#define ADDR_DBG_BREAK() do {} while(0)
|
||||
|
||||
#define ADDR_INFO(cond, a)
|
||||
#define ADDR_INFO(cond, a) do {} while(0)
|
||||
|
||||
#define ADDR_WARN(cond, a)
|
||||
#define ADDR_WARN(cond, a) do {} while(0)
|
||||
|
||||
#define ADDR_EXIT(cond, a)
|
||||
#define ADDR_EXIT(cond, a) do {} while(0)
|
||||
|
||||
#endif // DEBUG
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <memcheck.h>
|
||||
#define VG(x) x
|
||||
#else
|
||||
#define VG(x)
|
||||
#define VG(x) ((void)0)
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
@@ -1240,7 +1240,7 @@ bool validate_ra(Program* program, const struct radv_nir_compiler_options *optio
|
||||
#ifndef NDEBUG
|
||||
void perfwarn(bool cond, const char *msg, Instruction *instr=NULL);
|
||||
#else
|
||||
#define perfwarn(program, cond, msg, ...)
|
||||
#define perfwarn(program, cond, msg, ...) do {} while(0)
|
||||
#endif
|
||||
|
||||
void aco_print_instr(Instruction *instr, FILE *output);
|
||||
|
||||
@@ -270,7 +270,7 @@ void radv_logi_v(const char *format, va_list va);
|
||||
fprintf(stderr, "%s:%d ASSERT: %s\n", __FILE__, __LINE__, #x); \
|
||||
})
|
||||
#else
|
||||
#define radv_assert(x)
|
||||
#define radv_assert(x) do {} while(0)
|
||||
#endif
|
||||
|
||||
#define stub_return(v) \
|
||||
|
||||
Reference in New Issue
Block a user