You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2002/11/14 13:33:45 UTC

cvs commit: apr/test testdir.c testtable.c testtime.c

jorton      2002/11/14 04:33:45

  Modified:    test     testdir.c testtable.c testtime.c
  Log:
  Remove "unused variable" warnings from GCC.
  
  Revision  Changes    Path
  1.7       +0 -4      apr/test/testdir.c
  
  Index: testdir.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testdir.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- testdir.c	11 Nov 2002 04:54:45 -0000	1.6
  +++ testdir.c	14 Nov 2002 12:33:45 -0000	1.7
  @@ -112,7 +112,6 @@
   static void test_removeall_fail(CuTest *tc)
   {
       apr_status_t rv;
  -    apr_finfo_t finfo;
   
       rv = apr_dir_remove("data/one", p);
       CuAssertIntEquals(tc, 1, APR_STATUS_IS_ENOTEMPTY(rv));
  @@ -121,7 +120,6 @@
   static void test_removeall(CuTest *tc)
   {
       apr_status_t rv;
  -    apr_finfo_t finfo;
   
       rv = apr_dir_remove("data/one/two/three", p);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
  @@ -136,7 +134,6 @@
   static void test_remove_notthere(CuTest *tc)
   {
       apr_status_t rv;
  -    apr_finfo_t finfo;
   
       rv = apr_dir_remove("data/notthere", p);
       CuAssertIntEquals(tc, 1, APR_STATUS_IS_ENOENT(rv));
  @@ -145,7 +142,6 @@
   static void test_mkdir_twice(CuTest *tc)
   {
       apr_status_t rv;
  -    apr_finfo_t finfo;
   
       rv = apr_dir_make("data/testdir", APR_UREAD | APR_UWRITE | APR_UEXECUTE, p);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
  
  
  
  1.6       +0 -2      apr/test/testtable.c
  
  Index: testtable.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtable.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- testtable.c	14 Nov 2002 12:25:56 -0000	1.5
  +++ testtable.c	14 Nov 2002 12:33:45 -0000	1.6
  @@ -78,7 +78,6 @@
   
   static void table_get(CuTest *tc)
   {
  -    apr_status_t rv;
       const char *val;
   
       apr_table_set(t1, "foo", "bar");
  @@ -88,7 +87,6 @@
   
   static void table_set(CuTest *tc)
   {
  -    apr_status_t rv;
       const char *val;
   
       apr_table_set(t1, "setkey", "bar");
  
  
  
  1.39      +0 -1      apr/test/testtime.c
  
  Index: testtime.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtime.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- testtime.c	11 Nov 2002 20:09:44 -0000	1.38
  +++ testtime.c	14 Nov 2002 12:33:45 -0000	1.39
  @@ -251,7 +251,6 @@
       apr_status_t rv;
       apr_time_exp_t xt;
       apr_int32_t hr_off = -5 * 3600; /* 5 hours in seconds */
  -    apr_time_exp_t expnow = { 186711, 36, 5, 14, 14, 8, 102, 6, 256, 0, -18000 };
   
       rv = apr_time_exp_tz(&xt, now, hr_off);
       if (rv == APR_ENOTIMPL) {