From 7cdb13a38d4554e1d7c0a9e49cbe192d3cc4806f Mon Sep 17 00:00:00 2001 From: Padraig O'Sullivan Date: Wed, 15 Jul 2009 14:45:15 -0400 Subject: [PATCH] Fixing the usage of __attribute__(unused) for solaris builds. --- tests/plus.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.30.2