aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_overload_callback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_overload_callback.cpp')
-rw-r--r--test/test_overload_callback.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_overload_callback.cpp b/test/test_overload_callback.cpp
index c8f4daf..502489c 100644
--- a/test/test_overload_callback.cpp
+++ b/test/test_overload_callback.cpp
@@ -24,7 +24,8 @@
std::atomic<bool> load_callback{ false };
-long data_cb(cubeb_stream * stream, void * user, const void * inputbuffer, void * outputbuffer, long nframes)
+static long
+data_cb(cubeb_stream * stream, void * user, const void * inputbuffer, void * outputbuffer, long nframes)
{
if (load_callback) {
fprintf(stderr, "Sleeping...\n");
@@ -34,7 +35,8 @@ long data_cb(cubeb_stream * stream, void * user, const void * inputbuffer, void
return nframes;
}
-void state_cb(cubeb_stream * stream, void * /*user*/, cubeb_state state)
+static void
+state_cb(cubeb_stream * stream, void * /*user*/, cubeb_state state)
{
ASSERT_TRUE(!!stream);