mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 15:01:18 +12:00
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:
parent
e5d7d5d173
commit
236216555f
1 changed files with 2 additions and 4 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue