mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
memblock/pstream: Fix two compiler warnings
Fix two compiler warnings recently introduced by the memfd patch set. Signed-off-by: David Henningsson <diwic@ubuntu.com>
This commit is contained in:
parent
27d0a3b388
commit
d3845a0f8a
2 changed files with 4 additions and 2 deletions
|
|
@ -1135,7 +1135,7 @@ static pa_memimport_segment* segment_attach(pa_memimport *i, pa_mem_type_t type,
|
|||
/* Should be called locked */
|
||||
static void segment_detach(pa_memimport_segment *seg) {
|
||||
pa_assert(seg);
|
||||
pa_assert(seg->n_blocks == (segment_is_permanent(seg) ? 1 : 0));
|
||||
pa_assert(seg->n_blocks == (segment_is_permanent(seg) ? 1u : 0u));
|
||||
|
||||
pa_hashmap_remove(seg->import->segments, PA_UINT32_TO_PTR(seg->memory.id));
|
||||
pa_shm_free(&seg->memory);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue