From aea3184139c6ba06a115a758d5623d22e83c1408 Mon Sep 17 00:00:00 2001 From: Klas Johansson Date: Sat, 19 Jun 2010 15:46:57 +0200 Subject: [PATCH] Fix compiler warnings --- src/rebar_reltool.erl | 2 +- src/rebar_xref.erl | 5 +---- 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).