Some more updates to the C++ test file to remove solaris warnings.
authorPadraig O'Sullivan <osullivan.padraig@gmail.com>
Wed, 15 Jul 2009 18:40:28 +0000 (14:40 -0400)
committerPadraig O'Sullivan <osullivan.padraig@gmail.com>
Wed, 15 Jul 2009 18:40:28 +0000 (14:40 -0400)
tests/plus.cpp

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