From: Padraig O'Sullivan Date: Wed, 15 Jul 2009 18:40:28 +0000 (-0400) Subject: Some more updates to the C++ test file to remove solaris warnings. X-Git-Tag: 0.32~12^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f66517ccc835644cc09595aa135737eb85ec4cac;p=awesomized%2Flibmemcached Some more updates to the C++ test file to remove solaris warnings. --- 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);