summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehan <jehan@girinstud.io>2018-06-09 01:37:35 +0200
committerJehan <jehan@girinstud.io>2018-06-11 15:13:55 +0200
commit866275f56b525ea8115209c3dfc5e452a7534e21 (patch)
tree18e2fd0ec8f868040ac88fd518d51a16347f193c
parentf96417e470ff4241260d740f43884a178a5bce5a (diff)
downloadglib-866275f56b525ea8115209c3dfc5e452a7534e21.tar.gz
gio: fix various "warning: unused variable".
-rw-r--r--gio/glocalfileinfo.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c
index df0352a8a..c1d0c2a8d 100644
--- a/gio/glocalfileinfo.c
+++ b/gio/glocalfileinfo.c
@@ -1119,8 +1119,10 @@ lookup_uid_data (uid_t uid)
char buffer[4096];
struct passwd pwbuf;
struct passwd *pwbufp;
+#ifndef __BIONIC__
char *gecos, *comma;
-
+#endif
+
if (uid_cache == NULL)
uid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)uid_data_free);
@@ -1205,10 +1207,12 @@ static char *
lookup_gid_name (gid_t gid)
{
char *name;
+#if defined (HAVE_GETGRGID_R)
char buffer[4096];
struct group gbuf;
+#endif
struct group *gbufp;
-
+
if (gid_cache == NULL)
gid_cache = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify)g_free);