From: Benjamin Sergeant Date: Thu, 13 Oct 2016 00:21:29 +0000 (-0700) Subject: Fix compiler warning about unused cache variable (#804) X-Git-Tag: v3.2.2~9^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c84e4e245f19fad155a50091784c9456d051cf91;p=thirdparty%2Flibarchive.git Fix compiler warning about unused cache variable (#804) * Fix compiler warning about unused cache variable --- 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);