Browse Source

Fix unused variables

Joseph Wayne Norton 12 years ago
parent
commit
215b6604db
2 changed files with 8 additions and 8 deletions
  1. 3 3
      test/gproc_dist_tests.erl
  2. 5 5
      test/gproc_tests.erl

+ 3 - 3
test/gproc_dist_tests.erl

@@ -106,14 +106,14 @@ t_simple_reg([H|_] = Ns) ->
     ?assertMatch(ok, t_lookup_everywhere(Name, Ns, undefined)),
     ?assertMatch(ok, t_call(P, die)).
 
-t_simple_reg_or_locate([A,B|_] = Ns) ->
+t_simple_reg_or_locate([A,B|_] = _Ns) ->
     Name = ?T_NAME,
     P1 = t_spawn(A),
-    Ref = erlang:monitor(process, P1),
+    _Ref = erlang:monitor(process, P1),
     ?assertMatch({P1, the_value},
 		 t_call(P1, {apply, gproc, reg_or_locate, [Name, the_value]})),
     P2 = t_spawn(B),
-    Ref2 = erlang:monitor(process, P2),
+    _Ref2 = erlang:monitor(process, P2),
     ?assertMatch({P1, the_value},
 		 t_call(P2, {apply, gproc, reg_or_locate, [Name, other_value]})),
     ?assertMatch(ok, t_call(P1, die)),

+ 5 - 5
test/gproc_tests.erl

@@ -171,21 +171,21 @@ t_reg_or_locate3() ->
 		     fun() ->
 			     P ! {self(), ok},
 			     receive
-				 {'DOWN',Ref,_,_,_} -> ok
+				 {'DOWN',_Ref,_,_,_} -> ok
 			     end
 		     end),
     ?assert(P =/= P1),
     ?assert(Value =:= the_value),
-    Ref = erlang:monitor(process, P1),
+    _Ref = erlang:monitor(process, P1),
     receive
 	{P1, ok} -> ok;
-	{'DOWN', Ref, _, _, Reason} ->
+	{'DOWN', _Ref, _, _, _Reason} ->
 	    ?assert(process_died_unexpectedly)
     end,
     ?assertMatch({P1, the_value}, gproc:reg_or_locate({n,l,foo})),
     exit(P1, kill),
     receive
-	{'DOWN',R1,_,_,_} ->
+	{'DOWN',_R1,_,_,_} ->
 	    ok
     end.
 
@@ -518,7 +518,7 @@ t_qlc_dead() ->
 		       gproc:reg({p, l, {p,2}}, y),
 		       P0 ! {self(), ok},
 		       receive
-			   {P, goodbye} -> ok;
+			   {_P, goodbye} -> ok;
 			   {'DOWN', Ref, _, _, _} ->
 			       ok
 		       end