From c84e4e245f19fad155a50091784c9456d051cf91 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 12 Oct 2016 17:21:29 -0700 Subject: [PATCH] Fix compiler warning about unused cache variable (#804) * Fix compiler warning about unused cache variable --- libarchive/archive_read_disk_set_standard_lookup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libarchive/archive_read_disk_set_standard_lookup.c b/libarchive/archive_read_disk_set_standard_lookup.c index d6b2d55b8..c7fd2471e 100644 --- a/libarchive/archive_read_disk_set_standard_lookup.c +++ b/libarchive/archive_read_disk_set_standard_lookup.c @@ -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); -- 2.47.2