mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix warning when compile with newer elixir
This commit is contained in:
parent
280aa2f1b0
commit
9e95150803
7
mix.exs
7
mix.exs
@ -132,7 +132,12 @@ defmodule Mix.Tasks.Compile.Asn1 do
|
|||||||
mappings = Enum.zip(source_paths, dest_paths)
|
mappings = Enum.zip(source_paths, dest_paths)
|
||||||
options = project[:asn1_options] || []
|
options = project[:asn1_options] || []
|
||||||
|
|
||||||
Erlang.compile(manifest(), mappings, :asn1, :erl, opts[:force], fn
|
force = case opts[:force] do
|
||||||
|
:true -> [force: true]
|
||||||
|
_ -> [force: false]
|
||||||
|
end
|
||||||
|
|
||||||
|
Erlang.compile(manifest(), mappings, :asn1, :erl, force, fn
|
||||||
input, output ->
|
input, output ->
|
||||||
options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))]
|
options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))]
|
||||||
case :asn1ct.compile(Erlang.to_erl_file(input), options) do
|
case :asn1ct.compile(Erlang.to_erl_file(input), options) do
|
||||||
|
Loading…
Reference in New Issue
Block a user