mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
remove most -W compiler warnings
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@164 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
34fe8bd893
commit
36550f4a66
14 changed files with 46 additions and 47 deletions
|
|
@ -40,7 +40,7 @@ void pa_memchunk_make_writable(struct pa_memchunk *c, struct pa_memblock_stat *s
|
|||
|
||||
n = pa_memblock_new(c->length, s);
|
||||
assert(n);
|
||||
memcpy(n->data, c->memblock->data+c->index, c->length);
|
||||
memcpy(n->data, (uint8_t*) c->memblock->data+c->index, c->length);
|
||||
pa_memblock_unref(c->memblock);
|
||||
c->memblock = n;
|
||||
c->index = 0;
|
||||
|
|
@ -100,7 +100,7 @@ int pa_mcalign_pop(struct pa_mcalign *m, struct pa_memchunk *c) {
|
|||
l = m->chunk.length;
|
||||
assert(m->buffer && l);
|
||||
|
||||
memcpy(m->buffer + m->buffer_fill, m->chunk.memblock->data + m->chunk.index, l);
|
||||
memcpy((uint8_t*) m->buffer + m->buffer_fill, (uint8_t*) m->chunk.memblock->data + m->chunk.index, l);
|
||||
m->buffer_fill += l;
|
||||
m->chunk.index += l;
|
||||
m->chunk.length -= l;
|
||||
|
|
@ -132,7 +132,7 @@ int pa_mcalign_pop(struct pa_mcalign *m, struct pa_memchunk *c) {
|
|||
assert(!m->buffer);
|
||||
m->buffer = pa_xmalloc(m->base);
|
||||
m->chunk.length -= m->buffer_fill;
|
||||
memcpy(m->buffer, m->chunk.memblock->data + m->chunk.index + m->chunk.length, m->buffer_fill);
|
||||
memcpy(m->buffer, (uint8_t*) m->chunk.memblock->data + m->chunk.index + m->chunk.length, m->buffer_fill);
|
||||
}
|
||||
|
||||
if (m->chunk.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue