From 70752b8509ba1b7b7d2a052d6ef46216c538a967 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 7 May 2026 09:15:43 -0400 Subject: [PATCH] aux/trace: silence -Waddress warnings in macros --- src/gallium/auxiliary/driver_trace/tr_dump.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/driver_trace/tr_dump.h b/src/gallium/auxiliary/driver_trace/tr_dump.h index 157963aeaee..39dc0a1ce9c 100644 --- a/src/gallium/auxiliary/driver_trace/tr_dump.h +++ b/src/gallium/auxiliary/driver_trace/tr_dump.h @@ -146,7 +146,8 @@ bool trace_dump_is_triggered(void); #define trace_dump_array_impl(_type, _obj, _size, _prefix) \ do { \ - if (_obj) { \ + void *objptr = (void*)(_obj); \ + if (objptr) { \ size_t idx; \ trace_dump_array_begin(); \ for(idx = 0; idx < (_size); ++idx) { \ @@ -168,7 +169,8 @@ bool trace_dump_is_triggered(void); #define trace_dump_struct_array(_type, _obj, _size) \ do { \ - if (_obj) { \ + void *objptr = (void*)(_obj); \ + if (objptr) { \ size_t idx; \ trace_dump_array_begin(); \ for(idx = 0; idx < (_size); ++idx) { \