]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix compiler warning about unused cache variable (#804)
authorBenjamin Sergeant <bsergean@gmail.com>
Thu, 13 Oct 2016 00:21:29 +0000 (17:21 -0700)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 13 Oct 2016 00:21:29 +0000 (02:21 +0200)
* Fix compiler warning about unused cache variable

libarchive/archive_read_disk_set_standard_lookup.c

index d6b2d55b8d7b44df4dbde2e16ebe9b3323629c0a..c7fd2471ecbe57910500a4b62b38dada541b58ea 100644 (file)
@@ -232,6 +232,7 @@ static const char *
 lookup_uname_helper(struct name_cache *cache, id_t id)
 {
        struct passwd   *result;
+       (void)cache; /* UNUSED */
 
        result = getpwuid((uid_t)id);
 
@@ -298,6 +299,7 @@ static const char *
 lookup_gname_helper(struct name_cache *cache, id_t id)
 {
        struct group    *result;
+       (void)cache; /* UNUSED */
 
        result = getgrgid((gid_t)id);