aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2014-12-03 23:51:53 +0100
committerRickard Green <[email protected]>2014-12-03 23:51:53 +0100
commite7b0010ef2a190f1be2c775e6a236cbd7f0f577d (patch)
tree302d50784239c743ad2006d10eee0296e74e6eba /erts
parent27fce67f14299c97ab99bbb2c1524673b1925639 (diff)
downloadotp-e7b0010ef2a190f1be2c775e6a236cbd7f0f577d.tar.gz
otp-e7b0010ef2a190f1be2c775e6a236cbd7f0f577d.tar.bz2
otp-e7b0010ef2a190f1be2c775e6a236cbd7f0f577d.zip
Fix function "defined but not used" warning
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/sys/common/erl_check_io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c
index 81cb5dc4bb..0051b45b31 100644
--- a/erts/emulator/sys/common/erl_check_io.c
+++ b/erts/emulator/sys/common/erl_check_io.c
@@ -268,6 +268,8 @@ free_drv_select_data(ErtsDrvSelectDataState *dsp)
erts_free(ERTS_ALC_T_DRV_SEL_D_STATE, dsp);
}
+#if ERTS_CIO_HAVE_DRV_EVENT
+
static ERTS_INLINE ErtsDrvEventDataState *
alloc_drv_event_data(void)
{
@@ -290,6 +292,8 @@ free_drv_event_data(ErtsDrvEventDataState *dep)
erts_free(ERTS_ALC_T_DRV_EV_D_STATE, dep);
}
+#endif /* ERTS_CIO_HAVE_DRV_EVENT */
+
static ERTS_INLINE void
remember_removed(ErtsDrvEventState *state, struct pollset_info* psi)
{