From f66517ccc835644cc09595aa135737eb85ec4cac Mon Sep 17 00:00:00 2001 From: Padraig O'Sullivan Date: Wed, 15 Jul 2009 14:40:28 -0400 Subject: [PATCH] Some more updates to the C++ test file to remove solaris warnings. --- tests/plus.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/plus.cpp b/tests/plus.cpp index 1b90a1d6..1e664208 100644 --- a/tests/plus.cpp +++ b/tests/plus.cpp @@ -26,6 +26,9 @@ extern "C" { test_return basic_master_key_test(memcached_st *memc); test_return mget_result_function(memcached_st *memc); test_return mget_test(memcached_st *memc); + memcached_return callback_counter(memcached_st *ptr __attribute__((unused)), + memcached_result_st *result __attribute__((unused)), + void *context); void *world_create(void); void world_destroy(void *p); } @@ -100,9 +103,9 @@ test_return basic_master_key_test(memcached_st *memc) } /* Count the results */ -static memcached_return callback_counter(memcached_st *ptr __attribute__((unused)), - memcached_result_st *result __attribute__((unused)), - void *context) +memcached_return callback_counter(memcached_st *ptr __attribute__((unused)), + memcached_result_st *result __attribute__((unused)), + void *context) { unsigned int *counter= static_cast(context); -- 2.30.2