From 5836efd76ea07f4d62004ee2847abb00adb938e0 Mon Sep 17 00:00:00 2001 From: Andreas Klebinger Date: Tue, 19 Jan 2021 17:24:52 +0100 Subject: Force inlining of deRefStablePtr to silence warnings --- includes/rts/StablePtr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/rts/StablePtr.h b/includes/rts/StablePtr.h index 56113b9f81..73cd5bed4d 100644 --- a/includes/rts/StablePtr.h +++ b/includes/rts/StablePtr.h @@ -13,7 +13,7 @@ #pragma once -EXTERN_INLINE StgPtr deRefStablePtr (StgStablePtr stable_ptr); +ATTR_ALWAYS_INLINE EXTERN_INLINE StgPtr deRefStablePtr (StgStablePtr stable_ptr); StgStablePtr getStablePtr (StgPtr p); /* ----------------------------------------------------------------------------- @@ -28,7 +28,7 @@ typedef struct { extern DLL_IMPORT_RTS spEntry *stable_ptr_table; -EXTERN_INLINE +ATTR_ALWAYS_INLINE EXTERN_INLINE StgPtr deRefStablePtr(StgStablePtr sp) { // acquire load to ensure that we see the new SPT if it has been recently -- cgit v1.2.1