You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2019/01/09 09:31:27 UTC

svn commit: r1850834 - /httpd/httpd/trunk/modules/md/md_acme_drive.c

Author: jorton
Date: Wed Jan  9 09:31:26 2019
New Revision: 1850834

URL: http://svn.apache.org/viewvc?rev=1850834&view=rev
Log:
* modules/md/md_acme_drive.c (acme_driver_init):
  Remove written-but-not-read variable (gcc 8.x warning).

Modified:
    httpd/httpd/trunk/modules/md/md_acme_drive.c

Modified: httpd/httpd/trunk/modules/md/md_acme_drive.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/md/md_acme_drive.c?rev=1850834&r1=1850833&r2=1850834&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/md/md_acme_drive.c (original)
+++ httpd/httpd/trunk/modules/md/md_acme_drive.c Wed Jan  9 09:31:26 2019
@@ -618,7 +618,6 @@ static apr_status_t acme_driver_init(md_
 {
     md_acme_driver_t *ad;
     apr_status_t rv = APR_SUCCESS;
-    int challenges_configured = 0;
 
     ad = apr_pcalloc(d->p, sizeof(*ad));
     
@@ -635,12 +634,10 @@ static apr_status_t acme_driver_init(md_
     if (d->challenge) {
         /* we have been told to use this type */
         APR_ARRAY_PUSH(ad->ca_challenges, const char*) = apr_pstrdup(d->p, d->challenge);
-        challenges_configured = 1;
     }
     else if (d->md->ca_challenges && d->md->ca_challenges->nelts > 0) {
         /* pre-configured set for this managed domain */
         apr_array_cat(ad->ca_challenges, d->md->ca_challenges);
-        challenges_configured = 1;
     }
     else {
         /* free to chose. Add all we support and see what we get offered */