mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
pdbox: Silence a spurious warning with GCC9 on hosted ARM
(pdbox seems to trigger a lot of false warnings...) Change-Id: Ia24aa7ece4d6389dbdb36b30729a9372f872b034
This commit is contained in:
parent
d4d74fda00
commit
62d6c7ecaa
1 changed files with 8 additions and 0 deletions
|
@ -701,7 +701,15 @@ static int create_soundfile(t_canvas *canvas, const char *filename,
|
||||||
memcpy(aiffhdr->a_samprate, AIFF_splrate, sizeof(AIFF_splrate));
|
memcpy(aiffhdr->a_samprate, AIFF_splrate, sizeof(AIFF_splrate));
|
||||||
memcpy(aiffdc->dc_id, datachunk_ID, sizeof(datachunk_ID));
|
memcpy(aiffdc->dc_id, datachunk_ID, sizeof(datachunk_ID));
|
||||||
longtmp = swap4(datasize, swap);
|
longtmp = swap4(datasize, swap);
|
||||||
|
#if __GNUC__ == 9 // False positive with GCC9.5.0
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||||
|
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||||
|
#endif
|
||||||
memcpy(&aiffdc->dc_size, &longtmp, 4);
|
memcpy(&aiffdc->dc_size, &longtmp, 4);
|
||||||
|
#if __GNUC__ == 9
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
headersize = AIFFPLUS;
|
headersize = AIFFPLUS;
|
||||||
}
|
}
|
||||||
else /* WAVE format */
|
else /* WAVE format */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue