aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-07-11 16:33:52 +0200
committerRickard Green <[email protected]>2013-07-11 16:53:15 +0200
commit54c658c89dc8edae1e420861601eec068bc74676 (patch)
tree993f9cec034b497bb81a8bed479990b0b2558c59
parent70337ed8457402aebf7087ff04718d828d0c19e3 (diff)
downloadotp-54c658c89dc8edae1e420861601eec068bc74676.tar.gz
otp-54c658c89dc8edae1e420861601eec068bc74676.tar.bz2
otp-54c658c89dc8edae1e420861601eec068bc74676.zip
Fix variable ‘rp_had_locks’ set but not used warning
-rw-r--r--erts/emulator/beam/erl_nif.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_nif.c b/erts/emulator/beam/erl_nif.c
index d4c2b5bdcc..48f8be8dd3 100644
--- a/erts/emulator/beam/erl_nif.c
+++ b/erts/emulator/beam/erl_nif.c
@@ -310,9 +310,6 @@ int enif_send(ErlNifEnv* env, const ErlNifPid* to_pid,
Process* rp;
Process* c_p;
ErlHeapFragment* frags;
-#if defined(ERTS_ENABLE_LOCK_CHECK) && defined(ERTS_SMP)
- ErtsProcLocks rp_had_locks;
-#endif
Eterm receiver = to_pid->pid;
int flush_me = 0;
int scheduler = erts_get_scheduler_id() != 0;
@@ -332,10 +329,6 @@ int enif_send(ErlNifEnv* env, const ErlNifPid* to_pid,
#endif
}
-#if defined(ERTS_ENABLE_LOCK_CHECK) && defined(ERTS_SMP)
- rp_had_locks = rp_locks;
-#endif
-
rp = (scheduler
? erts_proc_lookup(receiver)
: erts_pid2proc_opt(c_p, ERTS_PROC_LOCK_MAIN,