svn commit: r1920415 - in /apr/apr-util/branches/1.7.x: ./ test/testmemcache.c test/testredis.c

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: jorton
Date: Tue Sep  3 08:04:58 2024
New Revision: 1920415

URL: http://svn.apache.org/viewvc?rev=1920415&view=rev
Log:
Merge r1902024 from trunk:

tests: Follow up to r1902015: Fix warnings.

testmemcache.c:193:12: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
testmemcache.c:667:18: error: unused variable ‘rv’ [-Werror=unused-variable]

Submitted by: ylavic
Reviewed by: jorton

Modified:
    apr/apr-util/branches/1.7.x/   (props changed)
    apr/apr-util/branches/1.7.x/test/testmemcache.c
    apr/apr-util/branches/1.7.x/test/testredis.c

Propchange: apr/apr-util/branches/1.7.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r1902024

Modified: apr/apr-util/branches/1.7.x/test/testmemcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/test/testmemcache.c?rev=1920415&r1=1920414&r2=1920415&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/test/testmemcache.c (original)
+++ apr/apr-util/branches/1.7.x/test/testmemcache.c Tue Sep  3 08:04:58 2024
@@ -189,7 +189,7 @@ static apr_status_t check_mc(void)
     return rv;
 }
 
-static int has_memcache_server()
+static int has_memcache_server(void)
 {
     static int has_memcache_server_state = -1;
 
@@ -732,7 +732,6 @@ static void test_connection_validation(a
 
 abts_suite *testmemcache(abts_suite * suite)
 {
-    apr_status_t rv;
     suite = ADD_SUITE(suite);
     abts_run_test(suite, test_memcache_create, NULL);
     abts_run_test(suite, test_memcache_user_funcs, NULL);

Modified: apr/apr-util/branches/1.7.x/test/testredis.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/test/testredis.c?rev=1920415&r1=1920414&r2=1920415&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/test/testredis.c (original)
+++ apr/apr-util/branches/1.7.x/test/testredis.c Tue Sep  3 08:04:58 2024
@@ -186,7 +186,7 @@ static apr_status_t check_redis(void)
     return rv;
 }
 
-static int has_redis_server()
+static int has_redis_server(void)
 {
     static int has_redis_server_state = -1;
 
@@ -584,7 +584,6 @@ static void test_redis_setexget(abts_cas
 
 abts_suite *testredis(abts_suite * suite)
 {
-    apr_status_t rv;
     suite = ADD_SUITE(suite);
 
     abts_run_test(suite, test_redis_create, NULL);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.