From dd0438ee6b7b3640516d5a48feec1490ca2f1cc3 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 22 Jan 2013 20:43:04 -0800 Subject: Specify 'inline' in addition to always_inline attribute. Specify both inline and __attribute__((always_inline)), in order to avoid warnings when using newer versions of gcc. --- include/jemalloc/internal/jemalloc_internal.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in index 13a2ffb..c606c12 100644 --- a/include/jemalloc/internal/jemalloc_internal.h.in +++ b/include/jemalloc/internal/jemalloc_internal.h.in @@ -241,7 +241,7 @@ static const bool config_ivsalloc = # define JEMALLOC_ENABLE_INLINE # ifdef JEMALLOC_HAVE_ATTR # define JEMALLOC_ALWAYS_INLINE \ - static JEMALLOC_ATTR(unused) JEMALLOC_ATTR(always_inline) + static inline JEMALLOC_ATTR(unused) JEMALLOC_ATTR(always_inline) # else # define JEMALLOC_ALWAYS_INLINE static inline # endif -- cgit v0.12