Permalink
Browse files

Add dialyzer -Wno_undefined_callbacks option

  • Loading branch information...
1 parent 7a8abe9 commit 02c02111ff0f04d4b93f0007ff0ec7a618e2e422 @norton norton committed Dec 21, 2011
Showing with 5 additions and 15 deletions.
  1. +5 −4 Makefile
  2. +0 −11 dialyze-nospec-ignore-warnings.txt
View
@@ -37,6 +37,7 @@ endif
clean realclean distclean \
otp_make_release_tests otp_run_release_tests \
bootstrap-package check-package package generate
+
all: compile
test: eunit
@@ -126,7 +127,7 @@ dialyze-spec: build-plt clean compile
dialyze-nospec: build-plt clean compile
@echo "dialyzing w/o spec: $(RELPKG) ..."
- dialyzer --plt $(PLT) --no_spec -r ./lib | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
+ dialyzer --plt $(PLT) --no_spec -Wno_undefined_callbacks -r ./lib | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
dialyze-eunit: dialyze-eunit-spec
@@ -138,7 +139,7 @@ dialyze-eunit-spec: build-plt clean eunit-compile
dialyze-eunit-nospec: build-plt clean eunit-compile
@echo "dialyzing .eunit w/o spec: $(RELPKG) ..."
./rebar eunit-compile
- dialyzer --plt $(PLT) --no_spec -r `find ./lib -name .eunit -print | xargs echo` | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
+ dialyzer --plt $(PLT) --no_spec -Wno_undefined_callbacks -r `find ./lib -name .eunit -print | xargs echo` | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
dialyze-eqc: dialyze-eqc-spec
@@ -150,7 +151,7 @@ dialyze-eqc-spec: build-plt clean eqc-compile
dialyze-eqc-nospec: build-plt clean eqc-compile
@echo "dialyzing .eqc w/o spec: $(RELPKG) ..."
./rebar eqc-compile
- dialyzer --plt $(PLT) --no_spec -r `find ./lib -name .eunit -print | xargs echo` | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
+ dialyzer --plt $(PLT) --no_spec -Wno_undefined_callbacks -r `find ./lib -name .eunit -print | xargs echo` | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
dialyze-proper: dialyze-proper-spec
@@ -162,7 +163,7 @@ dialyze-proper-spec: build-plt clean proper-compile
dialyze-proper-nospec: build-plt clean proper-compile
@echo "dialyzing .proper w/o spec: $(RELPKG) ..."
./rebar proper-compile
- dialyzer --plt $(PLT) --no_spec -r `find ./lib -name .eunit -print | xargs echo` | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
+ dialyzer --plt $(PLT) --no_spec -Wno_undefined_callbacks -r `find ./lib -name .eunit -print | xargs echo` | fgrep -v -f $(DIALYZE_NOSPEC_IGNORE_WARN)
ctags:
find ./lib -name "*.[he]rl" -print | fgrep -v .eunit | ctags -
@@ -19,21 +19,10 @@ brick_ets.erl:3053: The created fun has no local return
brick_mboxmon.erl:313: The created fun has no local return
brick_mboxmon.erl:329: Function start_water_report_loop/3 has no local return
brick_server.erl:4995: The created fun has no local return
-ebf.erl:29: Callback info about the contract_proto behaviour is not available
ebf.erl:44: Function encode/1 has no local return
ebf.erl:55: Function decode/1 has no local return
ebf.erl:59: Function decode/2 has no local return
ebf.erl:68: Function decode_init/0 has no local return
ebf.erl:72: Function decode_init/1 has no local return
-ebf_driver.erl:34: Callback info about the contract_driver behaviour is not available
-ftbf.erl:3: Callback info about the contract_proto behaviour is not available
-ftbf_driver.erl:5: Callback info about the contract_driver behaviour is not available
-jsf.erl:118: Callback info about the contract_proto behaviour is not available
-jsf_driver.erl:5: Callback info about the contract_driver behaviour is not available
meck.erl:621: Function invalidate_and_raise/6 has no local return
meck.erl:644: The pattern <Mod, Func, Args, [Meck = {'meck', 'exec', _Arity} | Stack]> can never match the type <atom(),_,_,[{atom(),atom(),[any()] | byte(),[any()]},...]>
-tbf.erl:257: Callback info about the contract_proto behaviour is not available
-tbf_driver.erl:5: Callback info about the contract_driver behaviour is not available
-ubf.erl:40: Callback info about the contract_proto behaviour is not available
-ubf_driver.erl:27: Callback info about the contract_driver behaviour is not available
-ubf_thrift_plugin.erl:7: Callback info about the ubf_plugin_stateless behaviour is not available

0 comments on commit 02c0211

Please sign in to comment.