mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01: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>
This commit is contained in:
parent
7a4a75a185
commit
51569e525a
4 changed files with 9 additions and 9 deletions
|
|
@ -68,7 +68,7 @@
|
||||||
#define ADDR_DBG_BREAK() { __debugbreak(); }
|
#define ADDR_DBG_BREAK() { __debugbreak(); }
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define ADDR_DBG_BREAK()
|
#define ADDR_DBG_BREAK() do {} while(0)
|
||||||
#endif
|
#endif
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
@ -147,15 +147,15 @@
|
||||||
|
|
||||||
#define ADDRDPF 1 ? (void)0 : (void)
|
#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
|
#endif // DEBUG
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
#include <memcheck.h>
|
#include <memcheck.h>
|
||||||
#define VG(x) x
|
#define VG(x) x
|
||||||
#else
|
#else
|
||||||
#define VG(x)
|
#define VG(x) ((void)0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
|
||||||
|
|
@ -1240,7 +1240,7 @@ bool validate_ra(Program* program, const struct radv_nir_compiler_options *optio
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
void perfwarn(bool cond, const char *msg, Instruction *instr=NULL);
|
void perfwarn(bool cond, const char *msg, Instruction *instr=NULL);
|
||||||
#else
|
#else
|
||||||
#define perfwarn(program, cond, msg, ...)
|
#define perfwarn(program, cond, msg, ...) do {} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void aco_print_instr(Instruction *instr, FILE *output);
|
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); \
|
fprintf(stderr, "%s:%d ASSERT: %s\n", __FILE__, __LINE__, #x); \
|
||||||
})
|
})
|
||||||
#else
|
#else
|
||||||
#define radv_assert(x)
|
#define radv_assert(x) do {} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define stub_return(v) \
|
#define stub_return(v) \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue