From cbc5cc3b2acd0f8f87a4616b8fadf57400dffbcb Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 3 Sep 2021 17:18:00 -0700 Subject: [PATCH] Fix GCC 11 array-bounds warning in P_SetupStateAnimation Removing inline here silences the warning somehow, it could be a GCC bug? --- src/p_mobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 690842270..b77dbc42a 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -78,7 +78,7 @@ void P_AddCachedAction(mobj_t *mobj, INT32 statenum) // // P_SetupStateAnimation // -FUNCINLINE static ATTRINLINE void P_SetupStateAnimation(mobj_t *mobj, state_t *st) +static void P_SetupStateAnimation(mobj_t *mobj, state_t *st) { INT32 animlength = (mobj->sprite == SPR_PLAY && mobj->skin) ? (INT32)(((skin_t *)mobj->skin)->sprites[mobj->sprite2].numframes) - 1