]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
heap: Shutup pedantic compiler
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 May 2020 14:02:58 +0000 (09:02 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 May 2020 14:03:03 +0000 (09:03 -0500)
src/lib/util/heap.c

index 9e2231181c85026aad43146d8cebb0a640a74ac6..df8c301fc25f5d32bb9c1f5c5f44542faf5e4b2e 100644 (file)
@@ -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;
 }