aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc_util.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-11-28 11:06:19 +0100
committerLukas Larsson <[email protected]>2018-12-03 14:41:13 +0100
commit4e5e0c6103982775e8e890f7d7c209cba279d0d6 (patch)
treef5eb932b6d50f7532bd2cc3e99a10df580e745de /erts/emulator/beam/erl_alloc_util.c
parentcc21219185d7ff90b5d3d09cae896082d7627ea9 (diff)
downloadotp-4e5e0c6103982775e8e890f7d7c209cba279d0d6.tar.gz
otp-4e5e0c6103982775e8e890f7d7c209cba279d0d6.tar.bz2
otp-4e5e0c6103982775e8e890f7d7c209cba279d0d6.zip
erts: Fix some 32-bit gcc warnings
Diffstat (limited to 'erts/emulator/beam/erl_alloc_util.c')
-rw-r--r--erts/emulator/beam/erl_alloc_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.c b/erts/emulator/beam/erl_alloc_util.c
index a5740a08cf..0be4562785 100644
--- a/erts/emulator/beam/erl_alloc_util.c
+++ b/erts/emulator/beam/erl_alloc_util.c
@@ -834,6 +834,8 @@ static ERTS_INLINE void clr_bit(UWord* map, Uint ix)
&= ~((UWord)1 << (ix % ERTS_VSPACE_WORD_BITS));
}
+#ifdef DEBUG
+
static ERTS_INLINE int is_bit_set(UWord* map, Uint ix)
{
ASSERT(ix / ERTS_VSPACE_WORD_BITS < VSPACE_MAP_SZ);
@@ -841,6 +843,8 @@ static ERTS_INLINE int is_bit_set(UWord* map, Uint ix)
& ((UWord)1 << (ix % ERTS_VSPACE_WORD_BITS));
}
+#endif
+
UWord erts_literal_vspace_map[VSPACE_MAP_SZ];
static void set_literal_range(void* start, Uint size)