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
This commit is contained in:
Alug committed 2025-12-02 18:40:30 +01:00
1 parent 982fff959f
commit f283d3ca43
1 file changed
+5
+5
View File
@@ -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;