summaryrefslogtreecommitdiffstats
path: root/Python/tracemalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-22 14:28:20 (GMT)
committerGitHub <noreply@github.com>2023-08-22 14:28:20 (GMT)
commit6541fe4ad7b96ab96ee5c596b60814a93346dd27 (patch)
tree1ee22f64291b37e7a1b04bcdfcf37f3dc5f18404 /Python/tracemalloc.c
parenta541e01537cc07b326cc37cc29412b816bc2b4fc (diff)
downloadcpython-6541fe4ad7b96ab96ee5c596b60814a93346dd27.zip
cpython-6541fe4ad7b96ab96ee5c596b60814a93346dd27.tar.gz
cpython-6541fe4ad7b96ab96ee5c596b60814a93346dd27.tar.bz2
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.
Diffstat (limited to 'Python/tracemalloc.c')
-rw-r--r--Python/tracemalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/tracemalloc.c b/Python/tracemalloc.c
index f8ad939..7d294ea 100644
--- a/Python/tracemalloc.c
+++ b/Python/tracemalloc.c
@@ -1247,7 +1247,7 @@ tracemalloc_get_traceback(unsigned int domain, uintptr_t ptr)
}
-#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))
static void
_PyMem_DumpFrame(int fd, frame_t * frame)