From: Andres Mejia Date: Thu, 7 Feb 2013 21:57:22 +0000 (-0500) Subject: Fix warning about unused variable triggered when not building on WIN32. X-Git-Tag: v3.1.2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b9d5f681e8407996610bbc86780de45525e232;p=thirdparty%2Flibarchive.git Fix warning about unused variable triggered when not building on WIN32. --- diff --git a/libarchive/archive_match.c b/libarchive/archive_match.c index ba348be57..6b6be9cb2 100644 --- a/libarchive/archive_match.c +++ b/libarchive/archive_match.c @@ -1376,6 +1376,7 @@ add_entry(struct archive_match *a, int flag, archive_mstring_copy_wcs(&(f->pathname), pathname); a->exclusion_tree.rbt_ops = &rb_ops_wcs; #else + (void)rb_ops_wcs; pathname = archive_entry_pathname(entry); if (pathname == NULL) { free(f); @@ -1515,6 +1516,7 @@ time_excluded(struct archive_match *a, struct archive_entry *entry) pathname = archive_entry_pathname_w(entry); a->exclusion_tree.rbt_ops = &rb_ops_wcs; #else + (void)rb_ops_wcs; pathname = archive_entry_pathname(entry); a->exclusion_tree.rbt_ops = &rb_ops_mbs; #endif