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:
committed by
Siddhesh Poyarekar
parent
a952fcda58
commit
29e25f6f13
@@ -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");
|
||||
|
Reference in New Issue
Block a user