Author: brane
Date: Tue May 1 17:25:26 2018
New Revision: 1830693
URL: http://svn.apache.org/viewvc?rev=1830693&view=rev
Log:
Follow up to r1830691: Remove new unused-function warnings.
* test/test_buckets.c (hold_open, put_32bit, create_gzip_deflate_bucket):
Define these functions only with SERF_TEST_DEFLATE_4GBPLUS_BUCKETS.
Modified:
serf/trunk/test/test_buckets.c
Modified: serf/trunk/test/test_buckets.c
URL:
http://svn.apache.org/viewvc/serf/trunk/test/test_buckets.c?rev=1830693&r1=1830692&r2=1830693&view=diff
==============================================================================
--- serf/trunk/test/test_buckets.c (original)
+++ serf/trunk/test/test_buckets.c Tue May 1 17:25:26 2018
@@ -2046,6 +2046,7 @@ static void test_deflate_buckets(CuTest
}
}
+#ifdef SERF_TEST_DEFLATE_4GBPLUS_BUCKETS
static apr_status_t hold_open(void *baton, serf_bucket_t *aggbkt)
{
test_baton_t *tb = baton;
@@ -2089,7 +2090,6 @@ create_gzip_deflate_bucket(serf_bucket_t
return defbkt;
}
-#ifdef SERF_TEST_DEFLATE_4GBPLUS_BUCKETS
/* Test for issue #152: the trailers of gzipped data only store the 4 most
significant bytes of the length, so when the compressed data is >4GB
we can't just compare actual length with expected length. */