Move warnings_as_errors to dedicated profile (#7)

The library should not block the compilation of other applications
This commit is contained in:
Andrey Fadeev 2020-05-26 12:05:30 +03:00 committed by GitHub
parent c34a962e17
commit 563d8ef954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -5,7 +5,7 @@ APP := snowflake
.PHONY: deps test dialyzer clean distclean
all: deps
@$(REBAR) compile
@$(REBAR) as strict compile
deps:
@$(REBAR) get-deps
@ -20,7 +20,7 @@ docs:
@$(REBAR) edoc
test:
@$(REBAR) do eunit, ct
@$(REBAR) as test,strict do eunit,ct
dialyzer:
@$(REBAR) dialyzer

View File

@ -2,7 +2,6 @@
{erl_opts, [
debug_info,
warnings_as_errors,
warn_untyped_record,
warn_export_vars,
warn_unused_record,
@ -42,3 +41,11 @@
]},
{plt_apps, all_deps}
]}.
{profiles, [
{strict, [
{erl_opts, [
warnings_as_errors
]}
]}
]}.