From: Padraig O'Sullivan Date: Wed, 15 Jul 2009 18:36:27 +0000 (-0400) Subject: Updating the C++ test file to remove some compiler warnings on Solaris. X-Git-Tag: 0.32~12^2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=561e53e6a21751b7adfc7ef8312244aae14868c4;p=m6w6%2Flibmemcached Updating the C++ test file to remove some compiler warnings on Solaris. --- 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;