aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-03-22 16:17:43 -0700
committerLukas Larsson <[email protected]>2017-03-28 10:41:05 +0200
commit1db00aa35f99b6876e1049b5162b31acc4f541c1 (patch)
tree8322fbd8ccb1895f5a6ad6f5fddeb1640e82a215 /erts
parent8e44a7ef60248eec658cfc81ad1110bc72a937c7 (diff)
downloadotp-1db00aa35f99b6876e1049b5162b31acc4f541c1.tar.gz
otp-1db00aa35f99b6876e1049b5162b31acc4f541c1.tar.bz2
otp-1db00aa35f99b6876e1049b5162b31acc4f541c1.zip
erts: Get rid of some unused function warnings on os x
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_process.c2
-rw-r--r--erts/emulator/sys/unix/sys.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index 88fae30845..4fca47d399 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -280,6 +280,7 @@ schdlr_sspnd_get_nscheds(ErtsSchedTypeCounters *valp,
}
}
+#ifdef DEBUG
static ERTS_INLINE Uint32
schdlr_sspnd_get_nscheds_tot(ErtsSchedTypeCounters *valp)
{
@@ -290,6 +291,7 @@ schdlr_sspnd_get_nscheds_tot(ErtsSchedTypeCounters *valp)
#endif
return res;
}
+#endif
static ERTS_INLINE void
schdlr_sspnd_dec_nscheds(ErtsSchedTypeCounters *valp,
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c
index b48b3f8804..4fd35c4efb 100644
--- a/erts/emulator/sys/unix/sys.c
+++ b/erts/emulator/sys/unix/sys.c
@@ -538,11 +538,13 @@ void sys_sigrelease(int sig)
sigprocmask(SIG_UNBLOCK, &mask, (sigset_t *)NULL);
}
+#ifdef ERTS_HAVE_TRY_CATCH
void erts_sys_sigsegv_handler(int signo) {
if (signo == SIGSEGV) {
longjmp(erts_sys_sigsegv_jmp, 1);
}
}
+#endif
/*
* Function returns 1 if we can read from all values in between