aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-06-10 13:16:59 +0200
committerRickard Green <[email protected]>2013-06-10 13:16:59 +0200
commit75fbf54df767358e9c3a997ff9a46b994102a0d0 (patch)
treefccf8d27d8d0a9c83d4886809600467ff6532cdd /erts/emulator
parentc4af01028f0e6ed5fe9e7b3054550f3447a3c343 (diff)
downloadotp-75fbf54df767358e9c3a997ff9a46b994102a0d0.tar.gz
otp-75fbf54df767358e9c3a997ff9a46b994102a0d0.tar.bz2
otp-75fbf54df767358e9c3a997ff9a46b994102a0d0.zip
erts: Fix warning
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/erl_alloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c
index a547191d6d..86575ccb9b 100644
--- a/erts/emulator/beam/erl_alloc.c
+++ b/erts/emulator/beam/erl_alloc.c
@@ -240,6 +240,10 @@ do { \
sys_memcpy((void *) (IP), (void *) &aui__, sizeof(struct au_init)); \
} while (0)
+#if ERTS_ALC_DEFAULT_ACUL \
+ || ERTS_ALC_DEFAULT_ACUL_LL_ALLOC \
+ || ERTS_ALC_DEFAULT_ACUL_EHEAP_ALLOC
+
static ERTS_INLINE void
set_default_acul(struct au_init *ip, int acul)
{
@@ -249,6 +253,8 @@ set_default_acul(struct au_init *ip, int acul)
ip->init.util.acul = acul;
}
+#endif
+
static void
set_default_sl_alloc_opts(struct au_init *ip)
{