diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-01-10 21:42:00 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2020-01-10 21:42:00 +0100 |
commit | 91df4397a1404df65de6de23426294c50ab88bd2 (patch) | |
tree | 017905b4b7d55aaba7eb024064e2fd9e26c5a550 /libgomp/affinity-fmt.c | |
parent | 530cfcd7b1cb92c752704c7115420d226a306971 (diff) |
re PR libgomp/93219 (unused return value in affinity-fmt.c)
PR libgomp/93219
* libgomp.h (gomp_print_string): Change return type from void to int.
* affinity-fmt.c (gomp_print_string): Likewise. Return true if
not all characters have been written.
From-SVN: r280137
Diffstat (limited to 'libgomp/affinity-fmt.c')
-rw-r--r-- | libgomp/affinity-fmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/affinity-fmt.c b/libgomp/affinity-fmt.c index c423e358dd1..9a5334de26e 100644 --- a/libgomp/affinity-fmt.c +++ b/libgomp/affinity-fmt.c @@ -37,10 +37,10 @@ #include <sys/utsname.h> #endif -void +bool gomp_print_string (const char *str, size_t len) { - fwrite (str, 1, len, stderr); + return fwrite (str, 1, len, stderr) != len; } void |