summaryrefslogtreecommitdiff
path: root/rts/adjustor/AdjustorPool.c
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-02-15 21:33:32 -0500
committerBen Gamari <ben@smart-cactus.org>2022-02-16 13:01:54 -0500
commitc3ba725999dfc1d846d7ffcc7c6d4313a607f6a9 (patch)
tree27d5a1e1af4a80e54ec99173ba13ee5bf63eca2e /rts/adjustor/AdjustorPool.c
parentef5cf55d71e84a0a42596b4ec253ecb0d63f149b (diff)
downloadhaskell-wip/T21079.tar.gz
rts/AdjustorPool: Silence unused function warningwip/T21079
bitmap_get is only used in the DEBUG RTS configuration. Fixes #21079.
Diffstat (limited to 'rts/adjustor/AdjustorPool.c')
-rw-r--r--rts/adjustor/AdjustorPool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/adjustor/AdjustorPool.c b/rts/adjustor/AdjustorPool.c
index b8171d4cc6..7ed9f2e5da 100644
--- a/rts/adjustor/AdjustorPool.c
+++ b/rts/adjustor/AdjustorPool.c
@@ -187,7 +187,8 @@ bitmap_set(uint8_t *bitmap, size_t idx, bool value)
}
}
-static bool
+// N.B. this is unused in non-DEBUG compilers
+static bool STG_UNUSED
bitmap_get(uint8_t *bitmap, size_t idx)
{
size_t word_n = idx / 8;