# HG changeset patch # User cehoyos # Date 1278498274 0 # Node ID ab330d7112ad3c3f3e0dad4e554c3b59af9de89b # Parent db9ef48dc0e4cf45fff0ed564292b532b61e7cb0 Silence warning "new qualifiers in middle of multi-level non-const cast are unsafe". Patch by Eli Friedman, eli d friedman a gmail diff -r db9ef48dc0e4 -r ab330d7112ad wmadec.c --- a/wmadec.c Tue Jul 06 17:48:23 2010 +0000 +++ b/wmadec.c Wed Jul 07 10:24:34 2010 +0000 @@ -804,10 +804,10 @@ s->frame_len * sizeof(float)); } } else { - float *output[MAX_CHANNELS]; + const float *output[MAX_CHANNELS]; for (ch = 0; ch < MAX_CHANNELS; ch++) output[ch] = s->frame_out[ch]; - s->dsp.float_to_int16_interleave(samples, (const float **)output, n, incr); + s->dsp.float_to_int16_interleave(samples, output, n, incr); for(ch = 0; ch < incr; ch++) { /* prepare for next block */ memmove(&s->frame_out[ch][0], &s->frame_out[ch][n], n * sizeof(float));