Permalink
Browse files

Eliminate (most) warnings

  • Loading branch information...
1 parent ad3e7c0 commit 3dfe677e22b7799087aafde63290099282a3aabc @bjorng bjorng committed Dec 9, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/git_object.erl
View
@@ -9,10 +9,10 @@
-include("git.hrl").
-parse_object(Sha, Data, blob) ->
+parse_object(_Sha, Data, blob) ->
binary_to_list(Data);
-parse_object(Sha, Data, tree) ->
+parse_object(_Sha, Data, tree) ->
% mode(6) SP Filename \0 SHA(20)
TreeString = binary_to_list(Data),
Tree = parse_tree_string(TreeString),
@@ -49,7 +49,7 @@ parse_tree_string(Tree) ->
read_until(String, Find) ->
{Front, Back} = lists:splitwith(fun(A) -> A /= Find end, String),
- {Found, Rest} = lists:split(1, Back),
+ {_Found, Rest} = lists:split(1, Back),
{Front, Rest}.
extract_matches([Match|Rest]) ->

0 comments on commit 3dfe677

Please sign in to comment.