From 6e55f9758bc3bbecaea4a743173d7ad6fd1c6afb Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Wed, 1 Nov 2023 15:09:29 -0400 Subject: [PATCH] Add use of the consumer for release builds. --- source/opt/log.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/opt/log.h b/source/opt/log.h index cb64b0a82a..4de6dea703 100644 --- a/source/opt/log.h +++ b/source/opt/log.h @@ -49,7 +49,9 @@ #if !defined(NDEBUG) && defined(SPIRV_LOG_DEBUG) #define SPIRV_DEBUG(consumer, ...) SPIRV_DEBUG_IMPL(consumer, __VA_ARGS__) #else -#define SPIRV_DEBUG(consumer, ...) +// Adding a use to avoid errors in the release build related to unused +// consumers. +#define SPIRV_DEBUG(consumer, ...) (void)(consumer) #endif // Helper macros for concatenating arguments.