summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-08-07 12:59:51 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2015-08-07 12:59:51 +0200
commit804a2209b4c8c540559c06f2c9d1544c609f1624 (patch)
tree93e7fc068aa8bce9814c4ce51b2350a2a4228368 /Makefile
parente2b7de27cc6c55e430882621a4545dcfdd901e95 (diff)
downloadrabbitmq-server-git-804a2209b4c8c540559c06f2c9d1544c609f1624.tar.gz
Warn about exported variables
Fix the reported warning in `credit_flow.erl` and `rabbit_table.erl`. This is the default setting in erlang.mk, so fixing this directly in RabbitMQ will ease future work on erlang.mk or Rebar.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1c9800188e..22f8270a07 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ USE_PROPER_QC:=$(shell erl -noshell -eval 'io:format({module, proper} =:= code:e
endif
#other args: +native +"{hipe,[o3,verbose]}" -Ddebug=true +debug_info +no_strict_record_tests
-ERLC_OPTS=-I $(INCLUDE_DIR) -Wall -v +debug_info $(call boolean_macro,$(USE_SPECS),use_specs) $(call boolean_macro,$(USE_PROPER_QC),use_proper_qc)
+ERLC_OPTS=-I $(INCLUDE_DIR) -Wall +warn_export_vars -v +debug_info $(call boolean_macro,$(USE_SPECS),use_specs) $(call boolean_macro,$(USE_PROPER_QC),use_proper_qc)
ifdef INSTRUMENT_FOR_QC
ERLC_OPTS += -DINSTR_MOD=gm_qc