Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MB-5307 Make dialyzer ignore unspecified callback specs.

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...
commit 43f0f231fa0c20dbff8044e178b98a391b4c0132 1 parent 68b377a
@aartamonau aartamonau authored alk committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 Makefile
View
5 Makefile
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.