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");

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
bitscher 2022-09-03 17:44:37 -07:00
parent e5d7d5d173
commit 236216555f

View file

@ -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