]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix trivial compiler warnings
authorEric Covener <covener@apache.org>
Thu, 5 Jan 2017 18:55:24 +0000 (18:55 +0000)
committerEric Covener <covener@apache.org>
Thu, 5 Jan 2017 18:55:24 +0000 (18:55 +0000)
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

modules/cache/mod_cache.c
modules/dav/main/mod_dav.c
modules/ssl/ssl_engine_kernel.c

index 8492374298a2ff433f1e11e673b933aae05e52f0..0ee51d5c4d9e29a0c4bf2cccfd91d4b1c3b7f976 100644 (file)
@@ -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) {
index 4c5d8924f423d1245f64fa3a97664ac97d644665..d35dd256277c5af29c020f1d84fd185b38eaafd1 100644 (file)
@@ -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);
index 7c564556b94a66c84912c7e661026d3561b7a1d2..a64f707c3ea8ea5624a0a1aa8c320747a01f40cc 100644 (file)
@@ -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
      */