Skip to content

Commit

Permalink
Disable warnings_as_error because of OTP deprecation warnings
Browse files Browse the repository at this point in the history
Fixes #168
  • Loading branch information
maennchen committed Jun 12, 2024
1 parent eb6de2c commit d673f31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ defmodule JOSE.Mixfile do
end

def erlc_options() do
extra_options = []

[:debug_info | if(Mix.env() == :prod, do: [], else: [:warnings_as_errors]) ++ extra_options]
[:debug_info]
end

defp package() do
Expand Down
5 changes: 1 addition & 4 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
%% -*- mode: erlang; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*-
%% vim: ts=4 sw=4 ft=erlang noet
{erl_opts, [
debug_info,
warnings_as_errors
]}.
{erl_opts, [debug_info]}.

0 comments on commit d673f31

Please sign in to comment.