Commit 258e9d4e authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Removed apr_bucket_do_create() macro, which was causing warnings

about unreachable code in some compilers (notably MSVC).  What
used to be done by this macro is now done inline in the various
apr_bucket_foo_create() functions.  [Cliff Woolley]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88811 13f79535-47bb-0310-9956-ffa450edef68
parent e172e3f5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -90,7 +90,10 @@ AP_DECLARE(apr_bucket *) ap_bucket_error_make(apr_bucket *b, int error,
AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, 
		const char *buf, apr_pool_t *p)
{
    apr_bucket_do_create(ap_bucket_error_make(b, error, buf, p));
    apr_bucket *b = (apr_bucket *)calloc(1, sizeof(*b));

    APR_BUCKET_INIT(b);
    return ap_bucket_error_make(b, error, buf, p);
}

AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_error = {