gio: fix various "warning: unused variable".

This commit is contained in:
Jehan 2018-06-09 01:37:35 +02:00
parent f96417e470
commit 866275f56b

View File

@ -1119,7 +1119,9 @@ lookup_uid_data (uid_t uid)
char buffer[4096]; char buffer[4096];
struct passwd pwbuf; struct passwd pwbuf;
struct passwd *pwbufp; struct passwd *pwbufp;
#ifndef __BIONIC__
char *gecos, *comma; char *gecos, *comma;
#endif
if (uid_cache == NULL) if (uid_cache == NULL)
uid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)uid_data_free); uid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)uid_data_free);
@ -1205,8 +1207,10 @@ static char *
lookup_gid_name (gid_t gid) lookup_gid_name (gid_t gid)
{ {
char *name; char *name;
#if defined (HAVE_GETGRGID_R)
char buffer[4096]; char buffer[4096];
struct group gbuf; struct group gbuf;
#endif
struct group *gbufp; struct group *gbufp;
if (gid_cache == NULL) if (gid_cache == NULL)