Commit 91df4397 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 530cfcd7
2020-01-10 Jakub Jelinek <jakub@redhat.com>
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.
2020-01-08 Tobias Burnus <tobias@codesourcery.com> 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
* libgomp.texi: Fix typos, use https. * libgomp.texi: Fix typos, use https.
......
...@@ -37,10 +37,10 @@ ...@@ -37,10 +37,10 @@
#include <sys/utsname.h> #include <sys/utsname.h>
#endif #endif
void bool
gomp_print_string (const char *str, size_t len) gomp_print_string (const char *str, size_t len)
{ {
fwrite (str, 1, len, stderr); return fwrite (str, 1, len, stderr) != len;
} }
void void
......
...@@ -832,7 +832,7 @@ extern void gomp_display_affinity_place (char *, size_t, size_t *, int); ...@@ -832,7 +832,7 @@ extern void gomp_display_affinity_place (char *, size_t, size_t *, int);
/* affinity-fmt.c */ /* affinity-fmt.c */
extern void gomp_print_string (const char *str, size_t len); extern bool gomp_print_string (const char *str, size_t len);
extern void gomp_set_affinity_format (const char *, size_t); extern void gomp_set_affinity_format (const char *, size_t);
extern void gomp_display_string (char *, size_t, size_t *, const char *, extern void gomp_display_string (char *, size_t, size_t *, const char *,
size_t); size_t);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment