From df1c0fddcb404b19beaaf0eace65d325768fc489 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 7ce5267e5..f12e73ad8 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -88,7 +88,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