aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_sanity.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-08-23 13:20:54 +1200
committerMatthew Gregan <[email protected]>2016-08-23 13:20:54 +1200
commita1f417334b19216eb09f5a1cd4cb9deea0fd231e (patch)
tree74e036d68cf0203ae7d75e3ab18ea577c7643de7 /test/test_sanity.cpp
parente954594a0de13e190768619d34d6fb106bbc8f53 (diff)
downloadcubeb-a1f417334b19216eb09f5a1cd4cb9deea0fd231e.tar.gz
cubeb-a1f417334b19216eb09f5a1cd4cb9deea0fd231e.zip
test: Fix unused parameter warnings.
Diffstat (limited to 'test/test_sanity.cpp')
-rw-r--r--test/test_sanity.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_sanity.cpp b/test/test_sanity.cpp
index 36f903f..de4b6a8 100644
--- a/test/test_sanity.cpp
+++ b/test/test_sanity.cpp
@@ -36,7 +36,7 @@ static uint64_t total_frames_written;
static int delay_callback;
static long
-test_data_callback(cubeb_stream * stm, void * user_ptr, const void * inputbuffer, void * outputbuffer, long nframes)
+test_data_callback(cubeb_stream * stm, void * user_ptr, const void * /*inputbuffer*/, void * outputbuffer, long nframes)
{
assert(stm && user_ptr == &dummy && outputbuffer && nframes > 0);
#if (defined(_WIN32) || defined(__WIN32__))
@@ -53,7 +53,7 @@ test_data_callback(cubeb_stream * stm, void * user_ptr, const void * inputbuffer
}
void
-test_state_callback(cubeb_stream * stm, void * user_ptr, cubeb_state state)
+test_state_callback(cubeb_stream * /*stm*/, void * /*user_ptr*/, cubeb_state /*state*/)
{
}
@@ -494,7 +494,7 @@ static int do_drain;
static int got_drain;
static long
-test_drain_data_callback(cubeb_stream * stm, void * user_ptr, const void * inputbuffer, void * outputbuffer, long nframes)
+test_drain_data_callback(cubeb_stream * stm, void * user_ptr, const void * /*inputbuffer*/, void * outputbuffer, long nframes)
{
assert(stm && user_ptr == &dummy && outputbuffer && nframes > 0);
if (do_drain == 1) {
@@ -513,7 +513,7 @@ test_drain_data_callback(cubeb_stream * stm, void * user_ptr, const void * input
}
void
-test_drain_state_callback(cubeb_stream * stm, void * user_ptr, cubeb_state state)
+test_drain_state_callback(cubeb_stream * /*stm*/, void * /*user_ptr*/, cubeb_state state)
{
if (state == CUBEB_STATE_DRAINED) {
assert(!got_drain);
@@ -608,7 +608,7 @@ int is_windows_7()
}
int
-main(int argc, char * argv[])
+main(int /*argc*/, char * /*argv*/[])
{
#ifdef CUBEB_GECKO_BUILD
ScopedXPCOM xpcom("test_sanity");