mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Silence warnings, courtesy of Tuncer Ayaz
This commit is contained in:
parent
d51479c37e
commit
fe03778678
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
||||||
%% Public API
|
%% Public API
|
||||||
%% ===================================================================
|
%% ===================================================================
|
||||||
|
|
||||||
escriptize(Config, AppFile) ->
|
escriptize(_Config, AppFile) ->
|
||||||
%% Extract the application name from the archive -- this will be be what
|
%% Extract the application name from the archive -- this will be be what
|
||||||
%% we call the output script
|
%% we call the output script
|
||||||
{ok, AppName, _AppData} = rebar_app_utils:load_app_file(AppFile),
|
{ok, AppName, _AppData} = rebar_app_utils:load_app_file(AppFile),
|
||||||
|
|
|
@ -85,7 +85,7 @@ now_str() ->
|
||||||
%% Internal functions
|
%% Internal functions
|
||||||
%% ====================================================================
|
%% ====================================================================
|
||||||
|
|
||||||
match_first([], Val) ->
|
match_first([], _Val) ->
|
||||||
nomatch;
|
nomatch;
|
||||||
match_first([{Regex, MatchValue} | Rest], Val) ->
|
match_first([{Regex, MatchValue} | Rest], Val) ->
|
||||||
case re:run(Val, Regex, [{capture, none}]) of
|
case re:run(Val, Regex, [{capture, none}]) of
|
||||||
|
|
Loading…
Reference in a new issue