Skip to content

Commit

Permalink
MB-5307 Make dialyzer ignore unspecified callback specs.
Browse files Browse the repository at this point in the history
Somehow I wasn't able to find a way to make callback specs
conditionally compiled only for R15B. Thus we'll just ignore these
warnings.

Change-Id: I25c359048f430c6e91150e76ac11d097b4ac40d0
Reviewed-on: http://review.couchbase.org/16244
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information
aartamonau authored and alk committed May 29, 2012
1 parent 68b377a commit 43f0f23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -182,8 +182,11 @@ do_build_plt:
$(realpath $(COUCH_PATH)/src/lhttpc) \
$(COUCH_PATH)/src/erlang-oauth deps/erlwsh/ebin deps/gen_smtp/ebin


OTP_RELEASE = $(shell erl -noshell -eval 'io:format("~s~n", [erlang:system_info(otp_release)]), erlang:halt().')
MAYBE_UNDEFINED_CALLBACKS = $(shell echo "$(OTP_RELEASE)" | grep -q "^R1[5-9]B.*$$" && echo -n "-Wno_undefined_callbacks" || echo -n)
dialyzer: all $(COUCHBASE_PLT)
$(MAKE) do-dialyzer DIALYZER_FLAGS="-Wno_return $(DIALYZER_FLAGS)" COUCH_PATH="$(shell . `pwd`/.configuration && echo $$couchdb_src)"
$(MAKE) do-dialyzer DIALYZER_FLAGS="-Wno_return $(MAYBE_UNDEFINED_CALLBACKS) $(DIALYZER_FLAGS)" COUCH_PATH="$(shell . `pwd`/.configuration && echo $$couchdb_src)"

GEOCOUCH_EBIN := $(firstword $(realpath $(COUCH_PATH)/../geocouch/build) $(realpath $(COUCH_PATH)/../geocouch/ebin))

Expand Down

0 comments on commit 43f0f23

Please sign in to comment.