From f283d3ca4378aae6df406f57dc855610aeeb6bbf Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 2 Dec 2025 18:40:14 +0100 Subject: [PATCH] suppress wrong "-Warray-bounds" warning in G_DeviceLEDTick newer gcc does this for whatever reason, its fine splitscreen will never call this out of its bounds --- src/g_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/g_input.c b/src/g_input.c index 424a749bd..5f3333fa9 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -714,8 +714,13 @@ void G_DeviceLEDTick(void) newcolor = G_GetSkinColorForGamepad(i); + // compiler be absolutely tripping + // delet this if this gets fixed within gcc +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" if (curcolor[i] == newcolor) // dont update if same colour continue; +#pragma GCC diagnostic pop G_SetPlayerGamepadIndicatorColor(i, newcolor); curcolor[i] = newcolor;