mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 01:30:30 +01:00
crocus: silence perf_debug -Waddress warnings
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36413>
This commit is contained in:
parent
7d2b36e50f
commit
1dae42308b
1 changed files with 2 additions and 1 deletions
|
|
@ -756,9 +756,10 @@ struct crocus_context {
|
|||
};
|
||||
|
||||
#define perf_debug(dbg, ...) do { \
|
||||
void *__var = (void*)(dbg); \
|
||||
if (INTEL_DEBUG(DEBUG_PERF)) \
|
||||
dbg_printf(__VA_ARGS__); \
|
||||
if (unlikely(dbg)) \
|
||||
if (unlikely(__var)) \
|
||||
util_debug_message(dbg, PERF_INFO, __VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue