From 44c850b9479c0e2563d6b5637d835336fe402139 Mon Sep 17 00:00:00 2001 From: KStocky Date: Sun, 7 Dec 2025 16:25:11 +0000 Subject: [PATCH] void casting the destination variable in PIXEndEvent to suppress unused variable warnings in clang. --- include/PIXEvents.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/PIXEvents.h b/include/PIXEvents.h index 1a9fdf0..fb53030 100644 --- a/include/PIXEvents.h +++ b/include/PIXEvents.h @@ -931,6 +931,7 @@ namespace PIXEventsDetail *eventDestination = PIXEncodeEventInfo(0, PIXEvent_EndEvent, eventSize, eventMetadata); PIXInsertGPUMarkerOnContextForEndEvent(context, PIXEvent_EndEvent, static_cast(buffer), static_cast(reinterpret_cast(destination) - reinterpret_cast(buffer))); #else + (void)destination; PIXEndGPUEventOnContext(context); #endif }