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:
@@ -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
|
||||
|
Reference in New Issue
Block a user