Commit bdf9a9f4 authored by Eric Covener's avatar Eric Covener
Browse files

Fix trivial compiler warnings

2.2.x patch: http://home.apache.org/~ylavic/patches/httpd-2.2.x-fix_trivial_warnings.patch

Reviewed by: ylavic, covener, wrowe



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1777492 13f79535-47bb-0310-9956-ffa450edef68
parent a28be041
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -691,7 +691,6 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
         * buckets and use their length to calculate the size
         */
        int all_buckets_here=0;
        int unresolved_length = 0;
        size=0;
        for (e = APR_BRIGADE_FIRST(in);
             e != APR_BRIGADE_SENTINEL(in);
@@ -702,7 +701,6 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
                break;
            }
            if (APR_BUCKET_IS_FLUSH(e)) {
                unresolved_length = 1;
                continue;
            }
            if (e->length == (apr_size_t)-1) {
+0 −4
Original line number Diff line number Diff line
@@ -2473,7 +2473,6 @@ static int dav_method_mkcol(request_rec *r)
    dav_error *err;
    dav_error *err2;
    int result;
    dav_dir_conf *conf;
    dav_response *multi_status;

    /* handle the request body */
@@ -2482,9 +2481,6 @@ static int dav_method_mkcol(request_rec *r)
        return result;
    }

    conf = (dav_dir_conf *)ap_get_module_config(r->per_dir_config,
                                                &dav_module);

    /* Ask repository module to resolve the resource */
    err = dav_get_resource(r, 0 /* label_allowed */, 0 /* use_checked_in */,
                           &resource);
+0 −3
Original line number Diff line number Diff line
@@ -1796,7 +1796,6 @@ void ssl_callback_DelSessionCacheEntry(SSL_CTX *ctx,
                                       SSL_SESSION *session)
{
    server_rec *s;
    SSLSrvConfigRec *sc;
    unsigned char *id;
    unsigned int idlen;

@@ -1807,8 +1806,6 @@ void ssl_callback_DelSessionCacheEntry(SSL_CTX *ctx,
        return; /* on server shutdown Apache is already gone */
    }

    sc = mySrvConfig(s);

    /*
     * Remove the SSL_SESSION from the inter-process cache
     */