aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-12-03 14:41:59 +0100
committerLukas Larsson <[email protected]>2018-12-03 14:41:59 +0100
commit0d24aecf46f9f387d64f06744f8a55b841669d1e (patch)
tree28b30a8091d925e88bdb6d5b3577e35754c76466 /erts/emulator/beam
parent1dc8502e0c129358ba671708f0ad52ff36bb4027 (diff)
parent4e5e0c6103982775e8e890f7d7c209cba279d0d6 (diff)
downloadotp-0d24aecf46f9f387d64f06744f8a55b841669d1e.tar.gz
otp-0d24aecf46f9f387d64f06744f8a55b841669d1e.tar.bz2
otp-0d24aecf46f9f387d64f06744f8a55b841669d1e.zip
Merge branch 'lukas/erts/CFLAGS-O-check/OTP-15465' into maint
* lukas/erts/CFLAGS-O-check/OTP-15465: erts: Fix some 32-bit gcc warnings erts: Add check that a -O flag is present in CFLAGS
Diffstat (limited to 'erts/emulator/beam')
-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)