From: Padraig O'Sullivan Date: Wed, 15 Jul 2009 18:45:15 +0000 (-0400) Subject: Fixing the usage of __attribute__(unused) for solaris builds. X-Git-Tag: 0.32~12^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7cdb13a38d4554e1d7c0a9e49cbe192d3cc4806f;p=awesomized%2Flibmemcached Fixing the usage of __attribute__(unused) for solaris builds. --- diff --git a/tests/plus.cpp b/tests/plus.cpp index 1e664208..dc075478 100644 --- a/tests/plus.cpp +++ b/tests/plus.cpp @@ -26,8 +26,8 @@ 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)), + memcached_return callback_counter(memcached_st *, + memcached_result_st *, void *context); void *world_create(void); void world_destroy(void *p); @@ -103,8 +103,8 @@ test_return basic_master_key_test(memcached_st *memc) } /* Count the results */ -memcached_return callback_counter(memcached_st *ptr __attribute__((unused)), - memcached_result_st *result __attribute__((unused)), +memcached_return callback_counter(memcached_st *, + memcached_result_st *, void *context) { unsigned int *counter= static_cast(context);