From 9e95150803e06e2dfbf917a4c70eb99193103c32 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 4 Oct 2017 12:03:36 +0200 Subject: [PATCH] Fix warning when compile with newer elixir --- mix.exs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 05f0826b8..2580cf9cf 100644 --- a/mix.exs +++ b/mix.exs @@ -132,7 +132,12 @@ defmodule Mix.Tasks.Compile.Asn1 do mappings = Enum.zip(source_paths, dest_paths) 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 -> options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))] case :asn1ct.compile(Erlang.to_erl_file(input), options) do