From deb8353d2cbb8047e1d0a8bc93b8704d9cd70b66 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 19 Jun 2020 10:56:28 -0700 Subject: [PATCH] Yes, we know we're discarding a return value. --- uidlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uidlist.c b/uidlist.c index 91fa8553..739286a4 100644 --- a/uidlist.c +++ b/uidlist.c @@ -527,14 +527,14 @@ const char *getallgroups(uid_t uid, item_list *gid_list) return "getpwuid failed"; gid_list->count = 0; /* We're overwriting any items in the list */ - EXPAND_ITEM_LIST(gid_list, gid_t, 32); + (void)EXPAND_ITEM_LIST(gid_list, gid_t, 32); size = gid_list->malloced; /* Get all the process's groups, with the pw_gid group first. */ if (getgrouplist(pw->pw_name, pw->pw_gid, gid_list->items, &size) < 0) { if (size > (int)gid_list->malloced) { gid_list->count = gid_list->malloced; - EXPAND_ITEM_LIST(gid_list, gid_t, size); + (void)EXPAND_ITEM_LIST(gid_list, gid_t, size); if (getgrouplist(pw->pw_name, pw->pw_gid, gid_list->items, &size) < 0) size = -1; } else @@ -553,7 +553,7 @@ const char *getallgroups(uid_t uid, item_list *gid_list) break; } if (j == size) { /* The default group wasn't found! */ - EXPAND_ITEM_LIST(gid_list, gid_t, size+1); + (void)EXPAND_ITEM_LIST(gid_list, gid_t, size+1); gid_array = gid_list->items; } gid_array[j] = gid_array[0]; -- 2.47.2