diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-01 16:27:47 +0200 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-01 13:01:32 -0400 |
commit | 29e25f6f136182fb3756d51e03dea7c4d1919dd9 (patch) | |
tree | 4d3950068c9fec569ae21055641b986632371fbb /misc | |
parent | a952fcda58cd7aa191140fc9e7d453df212b9117 (diff) | |
download | glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.tar glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.tar.gz glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.tar.bz2 glibc-29e25f6f136182fb3756d51e03dea7c4d1919dd9.zip |
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>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tst-efgcvt-template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/tst-efgcvt-template.c b/misc/tst-efgcvt-template.c index b924659a3d..87e3ebe4fa 100644 --- a/misc/tst-efgcvt-template.c +++ b/misc/tst-efgcvt-template.c @@ -200,8 +200,8 @@ special (void) output_error (NAME (ECVT), INFINITY, 10, "inf", 0, 0, p, decpt, sign); /* Simply make sure these calls with large NDIGITs don't crash. */ - (void) ECVT (123.456, 10000, &decpt, &sign); - (void) FCVT (123.456, 10000, &decpt, &sign); + p = ECVT (123.456, 10000, &decpt, &sign); + p = FCVT (123.456, 10000, &decpt, &sign); /* Some tests for the reentrant functions. */ /* Use a too small buffer. */ |