From a6952cdb77c3ba2928ea043f2a6e00b5ae0fcdcc Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Sun, 29 Apr 2012 23:57:49 +0200 Subject: [PATCH] Rename _Variables to remove compiler warnings --- src/hanoi_level.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hanoi_level.erl b/src/hanoi_level.erl index 1c92b22..1eab95a 100644 --- a/src/hanoi_level.erl +++ b/src/hanoi_level.erl @@ -132,8 +132,8 @@ code_change(_OldVsn, _State, _Extra) -> initialize(State) -> try - Result = initialize2(State), - ?log(" ** terminated ~p", [Result]) + _Result = initialize2(State), + ?log(" ** terminated ~p", [_Result]) catch Class:Ex when not (Class == exit andalso Ex == normal) -> ?log("crashing ~p:~p ~p~n", [Class,Ex,erlang:get_stacktrace()]), @@ -311,13 +311,13 @@ main_loop(State = #state{ next=Next }) -> main_loop(State2#state{ step_merge_ref=undefined }); - {MRef, step_done}=Msg -> + {_MRef, step_done}=Msg -> ?log("unexpected step_done", []), exit({bad_msg, Msg}); - {'DOWN', MRef, _, _, Reason} when MRef == State#state.step_merge_ref -> + {'DOWN', MRef, _, _, _Reason} when MRef == State#state.step_merge_ref -> - ?log("merge worker died ~p", [Reason]), + ?log("merge worker died ~p", [_Reason]), %% current merge worker died (or just finished) case State#state.step_next_ref of