Merge pull request #199 from tuncer/dia-dialyzer-warnings

rebar_dia_compiler: fix Dialyzer warnings
This commit is contained in:
Jared Morrow 2013-12-17 05:50:14 -08:00
commit e73098afea

View file

@ -75,8 +75,8 @@ compile_dia(Source, Target, Config) ->
case diameter_dict_util:parse({path, Source}, []) of case diameter_dict_util:parse({path, Source}, []) of
{ok, Spec} -> {ok, Spec} ->
FileName = dia_filename(Source, Spec), FileName = dia_filename(Source, Spec),
diameter_codegen:from_dict(FileName, Spec, Opts, erl), _ = diameter_codegen:from_dict(FileName, Spec, Opts, erl),
diameter_codegen:from_dict(FileName, Spec, Opts, hrl), _ = diameter_codegen:from_dict(FileName, Spec, Opts, hrl),
HrlFile = filename:join("src", FileName ++ ".hrl"), HrlFile = filename:join("src", FileName ++ ".hrl"),
case filelib:is_regular(HrlFile) of case filelib:is_regular(HrlFile) of
true -> true ->