pdbox: Silence false warning with GCC10

Change-Id: I0d5e7d74e9aa27ca21cde739389a040a83505cf7
This commit is contained in:
Solomon Peachy 2025-08-14 20:43:09 -04:00
parent 472a6a69c6
commit bf2320d23b

View file

@ -701,7 +701,7 @@ static int create_soundfile(t_canvas *canvas, const char *filename,
memcpy(aiffhdr->a_samprate, AIFF_splrate, sizeof(AIFF_splrate));
memcpy(aiffdc->dc_id, datachunk_ID, sizeof(datachunk_ID));
longtmp = swap4(datasize, swap);
#if __GNUC__ == 9 // False positive with GCC9.5.0
#if __GNUC__ == 9 || __GNUC__ == 10 // False positive with GCC9 && GCC10
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#pragma GCC diagnostic ignored "-Warray-bounds"