Fixing the usage of __attribute__(unused) for solaris builds.
authorPadraig O'Sullivan <osullivan.padraig@gmail.com>
Wed, 15 Jul 2009 18:45:15 +0000 (14:45 -0400)
committerPadraig O'Sullivan <osullivan.padraig@gmail.com>
Wed, 15 Jul 2009 18:45:15 +0000 (14:45 -0400)
tests/plus.cpp

index 1e6642084c9491f5fdbd7d5d97d8a321956bd3da..dc075478c9fdec7b9c4091c6912c2cd311b7b2ce 100644 (file)
@@ -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<unsigned int *>(context);