mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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> (cherry picked from commit51569e525a)
This commit is contained in:
parent
22aa458561
commit
0b25d2ce75
4 changed files with 9 additions and 9 deletions
|
|
@ -64,7 +64,7 @@
|
|||
#define ADDR_DBG_BREAK() { __debugbreak(); }
|
||||
#endif
|
||||
#else
|
||||
#define ADDR_DBG_BREAK()
|
||||
#define ADDR_DBG_BREAK() do {} while(0)
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
@ -143,15 +143,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>
|
||||
|
|
|
|||
|
|
@ -1162,7 +1162,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);
|
||||
|
|
|
|||
|
|
@ -266,7 +266,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) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue