]> granicus.if.org Git - apache/commitdiff
mod_md: fix [-Werror=unused-but-set-variable].
authorYann Ylavic <ylavic@apache.org>
Sat, 28 Oct 2017 15:53:26 +0000 (15:53 +0000)
committerYann Ylavic <ylavic@apache.org>
Sat, 28 Oct 2017 15:53:26 +0000 (15:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1813642 13f79535-47bb-0310-9956-ffa450edef68

modules/md/mod_md.c

index 28899ac04ab0fa96fbe730c26f34c679acf1a0c8..fb2b4e90127cced9998466f74dab6ce382e8a117 100644 (file)
@@ -732,7 +732,6 @@ static apr_status_t run_watchdog(int state, void *baton, apr_pool_t *ptemp)
 {
     md_watchdog *wd = baton;
     apr_status_t rv = APR_SUCCESS;
-    md_store_t *store;
     md_job_t *job;
     apr_time_t next_run, now;
     int restart = 0;
@@ -743,7 +742,6 @@ static apr_status_t run_watchdog(int state, void *baton, apr_pool_t *ptemp)
             ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, wd->s, APLOGNO(10054)
                          "md watchdog start, auto drive %d mds", wd->jobs->nelts);
             assert(wd->reg);
-            store = md_reg_store_get(wd->reg);
         
             for (i = 0; i < wd->jobs->nelts; ++i) {
                 job = APR_ARRAY_IDX(wd->jobs, i, md_job_t *);