From 561e53e6a21751b7adfc7ef8312244aae14868c4 Mon Sep 17 00:00:00 2001 From: Padraig O'Sullivan Date: Wed, 15 Jul 2009 14:36:27 -0400 Subject: [PATCH] Updating the C++ test file to remove some compiler warnings on Solaris. --- tests/plus.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/plus.cpp b/tests/plus.cpp index 23b5cf17..1b90a1d6 100644 --- a/tests/plus.cpp +++ b/tests/plus.cpp @@ -21,11 +21,16 @@ using namespace std; extern "C" { + test_return basic_test(memcached_st *memc); + test_return increment_test(memcached_st *memc); + test_return basic_master_key_test(memcached_st *memc); + test_return mget_result_function(memcached_st *memc); + test_return mget_test(memcached_st *memc); void *world_create(void); void world_destroy(void *p); } -static test_return basic_test(memcached_st *memc) +test_return basic_test(memcached_st *memc) { Memcached foo(memc); const string value_set("This is some data"); @@ -40,7 +45,7 @@ static test_return basic_test(memcached_st *memc) return TEST_SUCCESS; } -static test_return increment_test(memcached_st *memc) +test_return increment_test(memcached_st *memc) { Memcached mcach(memc); bool rc; @@ -73,7 +78,7 @@ static test_return increment_test(memcached_st *memc) return TEST_SUCCESS; } -static test_return basic_master_key_test(memcached_st *memc) +test_return basic_master_key_test(memcached_st *memc) { Memcached foo(memc); const string value_set("Data for server A"); @@ -106,7 +111,7 @@ static memcached_return callback_counter(memcached_st *ptr __attribute__((unused return MEMCACHED_SUCCESS; } -static test_return mget_result_function(memcached_st *memc) +test_return mget_result_function(memcached_st *memc) { Memcached mc(memc); bool rc; @@ -138,7 +143,7 @@ static test_return mget_result_function(memcached_st *memc) return TEST_SUCCESS; } -static test_return mget_test(memcached_st *memc) +test_return mget_test(memcached_st *memc) { Memcached mc(memc); bool rc; -- 2.30.2