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.
This commit is contained in:
Jason Evans 2013-01-22 20:43:04 -08:00
parent d1b6e18a99
commit dd0438ee6b

View File

@ -241,7 +241,7 @@ static const bool config_ivsalloc =
# define JEMALLOC_ENABLE_INLINE # define JEMALLOC_ENABLE_INLINE
# ifdef JEMALLOC_HAVE_ATTR # ifdef JEMALLOC_HAVE_ATTR
# define JEMALLOC_ALWAYS_INLINE \ # define JEMALLOC_ALWAYS_INLINE \
static JEMALLOC_ATTR(unused) JEMALLOC_ATTR(always_inline) static inline JEMALLOC_ATTR(unused) JEMALLOC_ATTR(always_inline)
# else # else
# define JEMALLOC_ALWAYS_INLINE static inline # define JEMALLOC_ALWAYS_INLINE static inline
# endif # endif