Skip to content

Commit

Permalink
Add use of the consumer for release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-perron committed Nov 1, 2023
1 parent 5cf47a9 commit 6e55f97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/opt/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e55f97

Please sign in to comment.