mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
make gcc shut up
This commit is contained in:
parent
1c84251ec5
commit
7c11554daa
1 changed files with 2 additions and 2 deletions
|
|
@ -3985,7 +3985,7 @@ static void command_extension(pa_pdispatch *pd, uint32_t command, uint32_t tag,
|
|||
CHECK_VALIDITY(c->pstream, m, tag, PA_ERR_NOEXTENSION);
|
||||
CHECK_VALIDITY(c->pstream, m->load_once || idx != PA_INVALID_INDEX, tag, PA_ERR_INVALID);
|
||||
|
||||
cb = (pa_native_protocol_ext_cb_t) pa_hashmap_get(c->protocol->extensions, m);
|
||||
cb = (pa_native_protocol_ext_cb_t) (unsigned long) pa_hashmap_get(c->protocol->extensions, m);
|
||||
CHECK_VALIDITY(c->pstream, m, tag, PA_ERR_NOEXTENSION);
|
||||
|
||||
if (cb(c->protocol, m, c, tag, t) < 0)
|
||||
|
|
@ -4380,7 +4380,7 @@ int pa_native_protocol_install_ext(pa_native_protocol *p, pa_module *m, pa_nativ
|
|||
pa_assert(cb);
|
||||
pa_assert(!pa_hashmap_get(p->extensions, m));
|
||||
|
||||
pa_assert_se(pa_hashmap_put(p->extensions, m, (void*) cb) == 0);
|
||||
pa_assert_se(pa_hashmap_put(p->extensions, m, (void*) (unsigned long) cb) == 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue