summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46a3586)
raw | patch | inline | side by side (parent: 46a3586)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 23 Aug 2016 14:15:30 +0000 (16:15 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 23 Aug 2016 14:15:30 +0000 (16:15 +0200) |
On some distro's some versions of GCC warn about the unchecked result,
even though it is casted to void.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 for the
discussion.
even though it is casted to void.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 for the
discussion.
src/python.c | patch | blob | history |
diff --git a/src/python.c b/src/python.c
index 27a1b25c4e1ecd14890cf6f81d8de7069ed26b81..ec2317b3721d00149e68fdc1567f59340da2cf99 100644 (file)
--- a/src/python.c
+++ b/src/python.c
if (plugin_thread_create(&thread, NULL, cpy_interactive, pipefd + 1)) {
ERROR("python: Error creating thread for interactive interpreter.");
}
- (void)read(pipefd[0], &buf, 1);
+ if(read(pipefd[0], &buf, 1))
+ ;
(void)close(pipefd[0]);
} else {
PyEval_InitThreads();