mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
Ignore _Py_write_noraise() result: cast to (void) (#108291)
Code using _Py_write_noraise() usually cannot report. Ignore errors is the least surprising behavior for users.
This commit is contained in:
parent
a541e01537
commit
6541fe4ad7
4 changed files with 9 additions and 9 deletions
|
@ -57,7 +57,7 @@
|
|||
# undef BYTE
|
||||
#endif
|
||||
|
||||
#define PUTS(fd, str) _Py_write_noraise(fd, str, (int)strlen(str))
|
||||
#define PUTS(fd, str) (void)_Py_write_noraise(fd, str, (int)strlen(str))
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue