From fe03778678fd98a62d3d2ca97011cb8261383394 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 28 Dec 2009 07:24:15 -0700 Subject: [PATCH] Silence warnings, courtesy of Tuncer Ayaz --- src/rebar_escripter.erl | 2 +- src/rebar_utils.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rebar_escripter.erl b/src/rebar_escripter.erl index b18b436..2142c63 100644 --- a/src/rebar_escripter.erl +++ b/src/rebar_escripter.erl @@ -32,7 +32,7 @@ %% Public API %% =================================================================== -escriptize(Config, AppFile) -> +escriptize(_Config, AppFile) -> %% Extract the application name from the archive -- this will be be what %% we call the output script {ok, AppName, _AppData} = rebar_app_utils:load_app_file(AppFile), diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index b263644..902feab 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -85,7 +85,7 @@ now_str() -> %% Internal functions %% ==================================================================== -match_first([], Val) -> +match_first([], _Val) -> nomatch; match_first([{Regex, MatchValue} | Rest], Val) -> case re:run(Val, Regex, [{capture, none}]) of