From 236216555fc87a94079f7e07f726874a4360cbef Mon Sep 17 00:00:00 2001 From: bitscher Date: Sat, 3 Sep 2022 17:44:37 -0700 Subject: [PATCH] Fix compilation warnings related to debug_printf The preprocessor was only removing debug_printf but left the expression in place causing warnings. /root/cemu/src/Cafe/GamePatch.cpp:436:17: warning: expression result unused [-Wunused-value] debug_printf("HLE: TWW EU dsp kill channel patch\n"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- src/Cemu/Logging/CemuDebugLogging.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Cemu/Logging/CemuDebugLogging.h b/src/Cemu/Logging/CemuDebugLogging.h index 700ce23c..ac05c024 100644 --- a/src/Cemu/Logging/CemuDebugLogging.h +++ b/src/Cemu/Logging/CemuDebugLogging.h @@ -3,11 +3,9 @@ // printf-style macros that are only active in non-release builds #ifdef PUBLIC_RELEASE -#define debug_printf // -#define debug_puts // +#define debug_printf(...) static void debugBreakpoint() { } #else -#define debug_printf printf -#define debug_puts puts +#define debug_printf(...) printf(__VA_ARGS__) static void debugBreakpoint() {} #endif \ No newline at end of file