From a50223c8eb8b0355d19612cb06c9e78dcb328187 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 28 Apr 2018 21:02:07 +0200 Subject: wiiyourself: fix worst compiler warnings --- tracker-wii/wiiyourself/wiimote.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tracker-wii') diff --git a/tracker-wii/wiiyourself/wiimote.cpp b/tracker-wii/wiiyourself/wiimote.cpp index 6427d5a5..d7d80f30 100644 --- a/tracker-wii/wiiyourself/wiimote.cpp +++ b/tracker-wii/wiiyourself/wiimote.cpp @@ -74,16 +74,16 @@ template inline T square(const T& val) { return val*val; } // internals: auto-strip code from the macros if they weren't defined #ifndef TRACE -# define TRACE +# define TRACE(...) (void)0 #endif #ifndef DEEP_TRACE -# define DEEP_TRACE +# define DEEP_TRACE(...) (void)0 #endif #ifndef WARN -# define WARN +# define WARN(...) (void)0 #endif // ------------------------------------------------------------------------------------ -static void _cdecl _TRACE (const TCHAR* fmt, ...) +static void __cdecl _TRACE (const TCHAR* fmt, ...) { static TCHAR buffer[256]; if (!fmt) return; @@ -2407,7 +2407,7 @@ bool wiimote::Load16bitMonoSampleWAV (const TCHAR* filepath, wiimote_sample &out union { WAVEFORMATEX x; WAVEFORMATEXTENSIBLE xe; - } wf = {0}; + } wf = {}; riff_chunkheader riff_chunkheader; chunk_header chunk_header; -- cgit v1.2.3