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.
if (plugin_thread_create(&thread, NULL, cpy_interactive, pipefd + 1)) {
ERROR("python: Error creating thread for interactive interpreter.");
}
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();
(void)close(pipefd[0]);
} else {
PyEval_InitThreads();