[PATCH 8/8] sysdeps/pthread/eintr.c: fix warn unused result
Frédéric Bérat
fberat@redhat.com
Tue Apr 18 12:11:30 GMT 2023
Fix unused result warnings, detected when _FORTIFY_SOURCE is enabled in
glibc.
---
sysdeps/pthread/eintr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysdeps/pthread/eintr.c b/sysdeps/pthread/eintr.c
index 000649d24e..8441df0c77 100644
--- a/sysdeps/pthread/eintr.c
+++ b/sysdeps/pthread/eintr.c
@@ -31,10 +31,10 @@ eintr_handler (int sig)
{
if (sig != the_sig)
{
- write (STDOUT_FILENO, "eintr_handler: signal number wrong\n", 35);
+ if (write (STDOUT_FILENO, "eintr_handler: signal number wrong\n", 35)) {};
_exit (1);
}
- write (STDOUT_FILENO, ".", 1);
+ if (write (STDOUT_FILENO, ".", 1)) {};
}
--
2.39.2
More information about the Libc-alpha
mailing list