Fix dialyzer warning: io:format/2 -> ok

This commit is contained in:
Tuncer Ayaz 2010-09-29 23:43:54 +02:00
parent 820012410a
commit 59ecb2028d

View file

@ -127,8 +127,8 @@ app_dirs(Apps) ->
Path <- lists:map(fun(App) -> code:lib_dir(App) end, Apps), erlang:is_list(Path)]. Path <- lists:map(fun(App) -> code:lib_dir(App) end, Apps), erlang:is_list(Path)].
%% @doc Render the warnings on the console. %% @doc Render the warnings on the console.
%% @spec output_warnings(Warnings::[warning()]) -> none() %% @spec output_warnings(Warnings::[warning()]) -> 'ok'
-spec(output_warnings(Warnings::[warning()]) -> none()). -spec(output_warnings(Warnings::[warning()]) -> 'ok').
output_warnings(Warnings) -> output_warnings(Warnings) ->
lists:foreach(fun(Warning) -> lists:foreach(fun(Warning) ->
?CONSOLE("~s", [dialyzer:format_warning(Warning)]) ?CONSOLE("~s", [dialyzer:format_warning(Warning)])