1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

tests: fix warn unused results

With fortification enabled, few function calls return result need to be
checked, has they get the __wur macro enabled.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
Frédéric Bérat
2023-06-01 16:27:47 +02:00
committed by Siddhesh Poyarekar
parent a952fcda58
commit 29e25f6f13
11 changed files with 60 additions and 22 deletions

View File

@@ -714,8 +714,8 @@ check_for_unshare_hints (int require_pidns)
continue;
val = -1; /* Sentinel. */
fscanf (f, "%d", &val);
if (val != files[i].bad_value)
int cnt = fscanf (f, "%d", &val);
if (cnt == 1 && val != files[i].bad_value)
continue;
printf ("To enable test-container, please run this as root:\n");