]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warning bind-9.7
authorMark Andrews <marka@isc.org>
Tue, 17 Sep 2013 23:16:13 +0000 (09:16 +1000)
committerMark Andrews <marka@isc.org>
Tue, 17 Sep 2013 23:16:43 +0000 (09:16 +1000)
(cherry picked from commit 01b7d52a9f26498144f9f586814ca615dc80d8b9)

lib/dns/journal.c

index 1564a811ffed9d4d186dabbf7ab0a8ffb9c846fc..6b097bd31527c92aae0ce7820bd21a0eab7ed586 100644 (file)
@@ -1216,9 +1216,7 @@ dns_journal_destroy(dns_journal_t **journalp) {
 /* XXX Share code with incoming IXFR? */
 
 static isc_result_t
-roll_forward(dns_journal_t *j, dns_db_t *db, unsigned int options,
-            isc_uint32_t resign)
-{
+roll_forward(dns_journal_t *j, dns_db_t *db, unsigned int options) {
        isc_buffer_t source;            /* Transaction data from disk */
        isc_buffer_t target;            /* Ditto after _fromwire check */
        isc_uint32_t db_serial;         /* Database SOA serial */
@@ -1368,6 +1366,8 @@ dns_journal_rollforward2(isc_mem_t *mctx, dns_db_t *db, unsigned int options,
        REQUIRE(DNS_DB_VALID(db));
        REQUIRE(filename != NULL);
 
+       UNUSED(resign);
+
        j = NULL;
        result = dns_journal_open(mctx, filename, ISC_FALSE, &j);
        if (result == ISC_R_NOTFOUND) {
@@ -1380,7 +1380,7 @@ dns_journal_rollforward2(isc_mem_t *mctx, dns_db_t *db, unsigned int options,
        if (JOURNAL_EMPTY(&j->header))
                result = DNS_R_UPTODATE;
        else
-               result = roll_forward(j, db, options, resign);
+               result = roll_forward(j, db, options);
 
        dns_journal_destroy(&j);