summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-12-10 11:16:40 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2024-12-10 11:16:40 -0500
commite9b14b3986fdea56aaec66d7d0eb321eb0622383 (patch)
treecbd34b0c226cffab1733af0e53f55482c78f5d15
parentc19b50cdd85ac9054161c1161ce5feff15947d46 (diff)
downloadrockbox-e9b14b3986.tar.gz
rockbox-e9b14b3986.zip
libmad synth.c silence warnings try #3
https://godbolt.org/z/3bM7fxPP3 shows some of the disasm around the troble area for compiling Change-Id: I7b2897ae20dad1b11af39439a4d1856267b1222b
-rw-r--r--lib/rbcodec/codecs/libmad/synth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rbcodec/codecs/libmad/synth.c b/lib/rbcodec/codecs/libmad/synth.c
index ebcf3d5015..5d835be470 100644
--- a/lib/rbcodec/codecs/libmad/synth.c
+++ b/lib/rbcodec/codecs/libmad/synth.c
@@ -712,8 +712,8 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
fx = &(*filter)[0][~phase & 1][0];
fo = &(*filter)[1][~phase & 1][0];
- D0ptr = (void*)&D[0][ p];
- D1ptr = (void*)&D[0][-p];
+ D0ptr = (mad_fixed_t const (*)[32])(D[0]+p);
+ D1ptr = (mad_fixed_t const (*)[32])(D[0]-p);
if(s & 1)
{
@@ -862,8 +862,8 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
fx = &(*filter)[0][~phase & 1][0];
fo = &(*filter)[1][~phase & 1][0];
- D0ptr = (void*)&D[0][ p];
- D1ptr = (void*)&D[0][-p];
+ D0ptr = (mad_fixed_t const (*)[32])(D[0]+p);
+ D1ptr = (mad_fixed_t const (*)[32])(D[0]-p);
if(s & 1)
{
@@ -981,8 +981,8 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame,
fx = &(*filter)[0][~phase & 1][0];
fo = &(*filter)[1][~phase & 1][0];
- D0ptr = (void*)&D[0][ p];
- D1ptr = (void*)&D[0][-p];
+ D0ptr = (mad_fixed_t const (*)[32])(D[0]+p);
+ D1ptr = (mad_fixed_t const (*)[32])(D[0]-p);
if(s & 1)
{