Commits

Andy Gross  committed d09d570

get rid of unused var warning in protobuffs

  • Participants
  • Parent commits bbf8526

Comments (0)

Files changed (2)

File apps/protobuffs/rebar.config

-{erl_opts, [debug_info]}.
+{erl_opts, [debug_info, fail_on_warning]}.

File apps/protobuffs/src/protobuffs_compile.erl

 expand_encode_function(Msgs, Line, Clause) ->
     {function,Line,encode,2,[filter_encode_clause(Msg, Clause) || Msg <- Msgs]}.
     
-filter_encode_clause({MsgName, Fields}, {clause,L,_Args,Guards,_Content}) ->
+filter_encode_clause({MsgName, _Fields}, {clause,L,_Args,Guards,_Content}) ->
     ToBin = {call,L,{atom,L,iolist_to_binary},[{call,L,
                                                 {atom,L,iolist},
                                                 [{atom,L,atomize(MsgName)},{var,L,'Record'}]}]},