P_SetupStateAnimation array-bounds warnings on GCC 11
As far as I can tell, the offsets of the fields that are being accessed according to the warnings are shared between mobj_t
and precipmobj_t
and thus are NOT outside of bounds. Removing inline attributes from the function silences these warnings. This makes me suspect this is a bug in GCC 11.
I am somewhat reluctant to remove the inline in hope that this may be fixed in GCC, but who knows.