summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-28 21:02:07 +0200
committerWei Shuai <cpuwolf@sina.com>2018-05-04 20:31:49 +0800
commita50223c8eb8b0355d19612cb06c9e78dcb328187 (patch)
treefa987cbd24a6e8cd6529fd2f96094e7951176b1c /tracker-wii
parent95bbb3aa264d82fbcab207ca93511286533fa9e7 (diff)
wiiyourself: fix worst compiler warnings
Diffstat (limited to 'tracker-wii')
-rw-r--r--tracker-wii/wiiyourself/wiimote.cpp10
1 files changed, 5 insertions, 5 deletions
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<class T> 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;