fix compiler warnings

This commit is contained in:
Wim Taymans 2020-02-11 15:25:53 +01:00
parent 9ce2c6157f
commit 1a6848801f
2 changed files with 6 additions and 1 deletions

View file

@ -28,7 +28,8 @@
static void oom(void) {
static const char e[] = "Not enough memory\n";
write(STDERR_FILENO, e, sizeof(e)-1);
if (write(STDERR_FILENO, e, sizeof(e)-1) < 0)
perror("write");
#ifdef SIGQUIT
raise(SIGQUIT);
#endif

View file

@ -854,6 +854,9 @@ static int impl_node_process_input(struct spa_node *node)
return res;
}
#if 0
/** this is used for clients providing data to pipewire and currently
* not supported in the compat layer */
static int impl_node_process_output(struct spa_node *node)
{
struct node *this;
@ -889,6 +892,7 @@ static int impl_node_process_output(struct spa_node *node)
return SPA_STATUS_OK;
}
#endif
static int impl_node_process(void *object)
{