Permalink
Browse files

Fix warning about unused variable triggered when not building on WIN32.

  • Loading branch information...
1 parent d16c487 commit c2b9d5f681e8407996610bbc86780de45525e232 @amejia1 amejia1 committed Feb 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit c2b9d5f

Please sign in to comment.