From ce61d00dcf251d10e2dcd558c9b0a16cd06fc150 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 2 Jan 2024 22:13:13 +0100 Subject: [PATCH] fix inline warnings --- src/p_saveg.c | 4 ++-- src/w_wad.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_saveg.c b/src/p_saveg.c index 3ac86eae6..3d1451eec 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -2493,7 +2493,7 @@ static inline void LoadLaserThinker(actionf_p1 thinker) // // Loads a lightlevel_t from a save game // -static inline void LoadLightlevelThinker(actionf_p1 thinker) +FUNCINLINE static ATTRINLINE void LoadLightlevelThinker(actionf_p1 thinker) { lightlevel_t *ht = Z_Malloc(sizeof (*ht), PU_LEVSPEC, NULL); ht->thinker.function.acp1 = thinker; @@ -3323,7 +3323,7 @@ static void P_NetArchiveMisc(void) WRITEUINT8(save_p, 0x2e); } -static inline boolean P_NetUnArchiveMisc(void) +FUNCINLINE static ATTRINLINE boolean P_NetUnArchiveMisc(void) { UINT32 pig; INT32 i; diff --git a/src/w_wad.c b/src/w_wad.c index 9490da790..d790b7558 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1767,7 +1767,7 @@ void *W_CacheLumpName(const char *name, INT32 tag) // Software-only compile cache the data without conversion #ifdef HWRENDER -static inline void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag) +FUNCINLINE static ATTRINLINE void *W_CachePatchNumPwad(UINT16 wad, UINT16 lump, INT32 tag) { GLPatch_t *grPatch;