mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-02 09:30:36 +00:00
BUILD: pools: fix build error on clang with inline vs forceinline
clang is more picky than gcc regarding duplicate "inline". The functions declared with "forceinline" don't need to have "inline" since it's already in the macro.
This commit is contained in:
parent
29eed99b50
commit
2d18717fb8
@ -115,7 +115,7 @@ static int(*_malloc_trim)(size_t) = NULL;
|
||||
* allocated on one thread and released on another one. Thus only the
|
||||
* pointer is usable.
|
||||
*/
|
||||
static inline forceinline unsigned int pool_pbucket(const void *ptr)
|
||||
static forceinline unsigned int pool_pbucket(const void *ptr)
|
||||
{
|
||||
return ptr_hash(ptr, CONFIG_HAP_POOL_BUCKETS_BITS);
|
||||
}
|
||||
@ -123,7 +123,7 @@ static inline forceinline unsigned int pool_pbucket(const void *ptr)
|
||||
/* returns the pool hash bucket to use for the current thread. This should only
|
||||
* be used when no pointer is available (e.g. count alloc failures).
|
||||
*/
|
||||
static inline forceinline unsigned int pool_tbucket(void)
|
||||
static forceinline unsigned int pool_tbucket(void)
|
||||
{
|
||||
return tid % CONFIG_HAP_POOL_BUCKETS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user