]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix warning about unused variable triggered when not building on WIN32.
authorAndres Mejia <amejia004@gmail.com>
Thu, 7 Feb 2013 21:57:22 +0000 (16:57 -0500)
committerAndres Mejia <amejia004@gmail.com>
Thu, 7 Feb 2013 21:57:22 +0000 (16:57 -0500)
libarchive/archive_match.c

index ba348be5794bbecc8ee20ad18c31b944e6b2e530..6b6be9cb20b568afb99ef457a4199e467a17a8d8 100644 (file)
@@ -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