Fix compiler warnings

This commit is contained in:
Klas Johansson 2010-06-19 15:46:57 +02:00
parent ad7a494bde
commit aea3184139
2 changed files with 2 additions and 5 deletions

View file

@ -163,7 +163,7 @@ app_exists(AppTuple, Server) when is_tuple(AppTuple) ->
app_exists(element(1, AppTuple), Server). app_exists(element(1, AppTuple), Server).
run_reltool(Server, Config, ReltoolConfig) -> run_reltool(Server, _Config, ReltoolConfig) ->
case reltool:get_target_spec(Server) of case reltool:get_target_spec(Server) of
{ok, Spec} -> {ok, Spec} ->
%% Pull the target dir and make sure it exists %% Pull the target dir and make sure it exists

View file

@ -77,9 +77,6 @@ xref(Config, _) ->
ok. ok.
foobar() ->
ok.
%% =================================================================== %% ===================================================================
%% Internal functions %% Internal functions
%% =================================================================== %% ===================================================================
@ -137,7 +134,7 @@ ks(Key, List) ->
display_mfas([], _Message) -> display_mfas([], _Message) ->
ok; ok;
display_mfas([{Mod, Fun, Args} = MFA | Rest], Message) -> display_mfas([{_Mod, Fun, Args} = MFA | Rest], Message) ->
{Source, Line} = find_mfa_source(MFA), {Source, Line} = find_mfa_source(MFA),
?CONSOLE("~s:~w: Warning: function ~s/~w ~s\n", [Source, Line, Fun, Args, Message]), ?CONSOLE("~s:~w: Warning: function ~s/~w ~s\n", [Source, Line, Fun, Args, Message]),
display_mfas(Rest, Message). display_mfas(Rest, Message).