Closed bryanhunter closed 9 years ago
@bryanhunter Unfortunately this causes builds with R16B02 (at least) and lower to fail with warnings like the following:
Compiled src/rafter_backend.erl
Compiled src/rafter_app.erl
include/rafter_consensus_fsm.hrl:22: referring to built-in type dict as a remote type; please take out the module name
include/rafter_consensus_fsm.hrl:27: referring to built-in type dict as a remote type; please take out the module name
include/rafter_consensus_fsm.hrl:35: referring to built-in type dict as a remote type; please take out the module name
make: *** [rafter] Error 1
I'm not sure what the solution is at this point. Maybe using -ifdef(Version)
?
Shucks...
I had missed that this thread: http://erlang.org/pipermail/erlang-questions/2014-February/077945.html
What a kick in the shorts, eh? It's going to be ugly.
A short-term workaround could be to add 'nowarn_deprecated_type' to erl_opts in rebar.config to disable the warning. The couchbase team did that: http://review.couchbase.org/#/c/35585/
Fixed by #35
Fixed 'type dict/0 is deprecated and will be removed in OTP 18.0' warnings that prevented build on R17.
Previously....
...fixed these by replacing dict() with dict:dict() in specs
...fixed these by replacing dict() with dict:dict() in specs
...fixed these by replacing dict() with dict:dict() in specs
$ make ... All good. :)