summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Mejia <amejia004@gmail.com>2013-02-07 16:57:22 -0500
committerAndres Mejia <amejia004@gmail.com>2013-02-07 16:57:22 -0500
commitc2b9d5f681e8407996610bbc86780de45525e232 (patch)
tree15f50fe94ebe9810e6e1e34e791879f3ca4b8d88
parentd16c4871c3b076a6ba39991e343e6aa89fb50e33 (diff)
downloadlibarchive-c2b9d5f681e8407996610bbc86780de45525e232.tar.gz
Fix warning about unused variable triggered when not building on WIN32.
-rw-r--r--libarchive/archive_match.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libarchive/archive_match.c b/libarchive/archive_match.c
index ba348be5..6b6be9cb 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