Fix dialyzer warning for filename:join/2 calls

This commit is contained in:
Tuncer Ayaz 2010-09-29 21:28:20 +02:00
parent 3354e8ebe0
commit d590c18b5a
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ update_deps_code_path([]) ->
update_deps_code_path([Dep | Rest]) ->
case is_app_available(Dep#dep.app, Dep#dep.vsn_regex, Dep#dep.dir) of
{true, _} ->
code:add_patha(filename:join(Dep#dep.dir, ebin));
code:add_patha(filename:join(Dep#dep.dir, "ebin"));
false ->
ok
end,
@ -249,7 +249,7 @@ use_source(Dep, Count) ->
{true, _} ->
%% Available version matches up -- we're good to go; add the
%% app dir to our code path
code:add_patha(filename:join(Dep#dep.dir, ebin)),
code:add_patha(filename:join(Dep#dep.dir, "ebin")),
Dep;
false ->
%% The app that was downloaded doesn't match up (or had

View file

@ -315,7 +315,7 @@ default_env() ->
{"CC", "cc"},
{"CXX", "c++"},
{"ERL_CFLAGS", lists:concat([" -I", code:lib_dir(erl_interface, include),
" -I", filename:join(erts_dir(), include),
" -I", filename:join(erts_dir(), "include"),
" "])},
{"ERL_LDFLAGS", lists:concat([" -L", code:lib_dir(erl_interface, lib),
" -lerl_interface -lei"])},