mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
fix compiler warnings
This commit is contained in:
parent
9ce2c6157f
commit
1a6848801f
2 changed files with 6 additions and 1 deletions
|
|
@ -28,7 +28,8 @@
|
||||||
|
|
||||||
static void oom(void) {
|
static void oom(void) {
|
||||||
static const char e[] = "Not enough memory\n";
|
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
|
#ifdef SIGQUIT
|
||||||
raise(SIGQUIT);
|
raise(SIGQUIT);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -854,6 +854,9 @@ static int impl_node_process_input(struct spa_node *node)
|
||||||
return res;
|
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)
|
static int impl_node_process_output(struct spa_node *node)
|
||||||
{
|
{
|
||||||
struct node *this;
|
struct node *this;
|
||||||
|
|
@ -889,6 +892,7 @@ static int impl_node_process_output(struct spa_node *node)
|
||||||
|
|
||||||
return SPA_STATUS_OK;
|
return SPA_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int impl_node_process(void *object)
|
static int impl_node_process(void *object)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue