Browse files

xpath_json: fixed compile warnings.

  • Loading branch information...
1 parent 01725d6 commit 4bfdd7a50fae5e795c1b3d5eb1f7ad0356caf610 @eriksoe eriksoe committed Jul 4, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/xpath_json.erl
View
5 src/xpath_json.erl
@@ -2,8 +2,9 @@
-export([select/2]).
--define(TEST,true).
+-ifdef(TEST).
-export([test/0]).
+-endif.
-record(node, {root :: #node{} | self,
parent :: #node{},
@@ -193,7 +194,7 @@ fold_axis(attribute, Fun, Acc, Node) ->
fold_axis(child, Fun, Acc, Node=#node{ value={struct, Members}}) ->
%Last = length(Members),
- {Acc2,_} = lists:foldl(fun({Name,Value}=Member, {Acc0, Idx}) ->
+ {Acc2,_} = lists:foldl(fun({Name,Value}, {Acc0, Idx}) ->
Acc1 = Fun(#node{ name=Name,
value=Value,
parent=Node,

0 comments on commit 4bfdd7a

Please sign in to comment.