Skip to content

Commit

Permalink
Add a WARNINGS_AS_ERRORS make variable
Browse files Browse the repository at this point in the history
By default, WARNINGS_AS_ERRORS is set to -Werror to cause erlc to
treat warnings as errors. The WARNINGS_AS_ERRORS variable allows this
to be easily turned off when running make:

    make all WARNINGS_AS_ERRORS=
  • Loading branch information
vinoski committed May 14, 2020
1 parent 48686bb commit 28eecfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ am__v_ERLC_ = $(am__v_ERLC_$(AM_DEFAULT_VERBOSITY))
am__v_ERLC_0 = @echo " ERLC " $@;
am__v_ERLC_1 =

ERLC_GENERIC_FLAGS = -Werror +debug_info $(DEBUG_ERLC_FLAGS) \
WARNINGS_AS_ERRORS = -Werror

ERLC_GENERIC_FLAGS = $(WARNINGS_AS_ERRORS) +debug_info $(DEBUG_ERLC_FLAGS) \
-pa $(top_srcdir) -pa $(top_builddir) -pa $(top_builddir)/ebin \
-I $(top_srcdir)/include -I $(srcdir)/../include \
-I $(top_builddir)/include -I $(builddir)/../include
Expand Down

0 comments on commit 28eecfd

Please # to comment.