aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2014-12-03 23:53:04 +0100
committerRickard Green <[email protected]>2014-12-03 23:53:04 +0100
commite0414e9f0f5924e3f794dd824715f96313198987 (patch)
tree302d50784239c743ad2006d10eee0296e74e6eba
parent27fce67f14299c97ab99bbb2c1524673b1925639 (diff)
parente7b0010ef2a190f1be2c775e6a236cbd7f0f577d (diff)
downloadotp-e0414e9f0f5924e3f794dd824715f96313198987.tar.gz
otp-e0414e9f0f5924e3f794dd824715f96313198987.tar.bz2
otp-e0414e9f0f5924e3f794dd824715f96313198987.zip
Merge branch 'rickard/check-io-warning-fix/OTP-12352' into maint
* rickard/check-io-warning-fix/OTP-12352: Fix function "defined but not used" warning
-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)
{