From: Arran Cudbard-Bell Date: Thu, 21 May 2020 14:02:58 +0000 (-0500) Subject: heap: Shutup pedantic compiler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c3f8d3259ca7f511a1d4e08f4c728f3ac8a9678;p=thirdparty%2Ffreeradius-server.git heap: Shutup pedantic compiler --- diff --git a/src/lib/util/heap.c b/src/lib/util/heap.c index 9e2231181c8..df8c301fc25 100644 --- a/src/lib/util/heap.c +++ b/src/lib/util/heap.c @@ -83,12 +83,12 @@ fr_heap_t *_fr_heap_alloc(TALLOC_CTX *ctx, fr_heap_cmp_t cmp, char const *type, return fh; } -static CC_HINT(always_inline) int32_t index_get(fr_heap_t *hp, void *data) +static inline CC_HINT(always_inline) int32_t index_get(fr_heap_t *hp, void *data) { return *((int32_t const *)(((uint8_t const *)data) + hp->offset)); } -static CC_HINT(always_inline) void index_set(fr_heap_t *hp, void *data, int32_t idx) +static inline CC_HINT(always_inline) void index_set(fr_heap_t *hp, void *data, int32_t idx) { *((int32_t *)(((uint8_t *)data) + hp->offset)) = idx; }