summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlas Johansson <klas.johansson@gmail.com>2010-06-19 15:46:57 +0200
committerKlas Johansson <klas.johansson@gmail.com>2010-06-19 15:46:57 +0200
commitaea3184139c6ba06a115a758d5623d22e83c1408 (patch)
treeaa99de9fcc6504d3901ca3ae4df150f13bfc4bdf
parentad7a494bdebd1f0b9f2ac77bc647a6557c470fdb (diff)
Fix compiler warnings
-rw-r--r--src/rebar_reltool.erl2
-rw-r--r--src/rebar_xref.erl5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl
index 9891354..19c7433 100644
--- a/src/rebar_reltool.erl
+++ b/src/rebar_reltool.erl
@@ -163,7 +163,7 @@ app_exists(AppTuple, Server) when is_tuple(AppTuple) ->
app_exists(element(1, AppTuple), Server).
-run_reltool(Server, Config, ReltoolConfig) ->
+run_reltool(Server, _Config, ReltoolConfig) ->
case reltool:get_target_spec(Server) of
{ok, Spec} ->
%% Pull the target dir and make sure it exists
diff --git a/src/rebar_xref.erl b/src/rebar_xref.erl
index c93995b..1f67a37 100644
--- a/src/rebar_xref.erl
+++ b/src/rebar_xref.erl
@@ -77,9 +77,6 @@ xref(Config, _) ->
ok.
-foobar() ->
- ok.
-
%% ===================================================================
%% Internal functions
%% ===================================================================
@@ -137,7 +134,7 @@ ks(Key, List) ->
display_mfas([], _Message) ->
ok;
-display_mfas([{Mod, Fun, Args} = MFA | Rest], Message) ->
+display_mfas([{_Mod, Fun, Args} = MFA | Rest], Message) ->
{Source, Line} = find_mfa_source(MFA),
?CONSOLE("~s:~w: Warning: function ~s/~w ~s\n", [Source, Line, Fun, Args, Message]),
display_mfas(Rest, Message).