summaryrefslogtreecommitdiff
path: root/typedefs.h
diff options
context:
space:
mode:
authorkwiberg@webrtc.org <kwiberg@webrtc.org>2014-08-25 06:26:04 +0000
committerkwiberg@webrtc.org <kwiberg@webrtc.org>2014-08-25 06:26:04 +0000
commit999bcbc7588ed449b0ee6db29aeb79f72007488b (patch)
tree75ee1c860eb0e2cc46445efddedc739399958b1b /typedefs.h
parentf854f30d7981795f687f9b4379100c037934535d (diff)
downloadwebrtc-999bcbc7588ed449b0ee6db29aeb79f72007488b.tar.gz
Fix WEBRTC_AEC_DEBUG_DUMP (broken by int16->float conversion)
And in the process, make it dump WAV files instead of raw PCM. R=andrew@webrtc.org, bjornv@webrtc.org Review URL: https://webrtc-codereview.appspot.com/19089004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6959 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'typedefs.h')
-rw-r--r--typedefs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/typedefs.h b/typedefs.h
index d8977ff4..38cda513 100644
--- a/typedefs.h
+++ b/typedefs.h
@@ -109,4 +109,15 @@ typedef unsigned __int64 uint64_t;
#endif
#endif // WARN_UNUSED_RESULT
+// Put after a variable that might not be used, to prevent compiler warnings:
+// int result UNUSED = DoSomething();
+// assert(result == 17);
+#ifndef UNUSED
+#ifdef __GNUC__
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
+#endif
+
#endif // WEBRTC_TYPEDEFS_H_