Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix queue/0 type deprecations (with queue:queue/0) #6

Closed
wants to merge 1 commit into from

Conversation

mbbx6spp
Copy link

@mbbx6spp mbbx6spp commented Nov 6, 2014

When including the latest on develop for poolboy as a dependency in an Erlang project, rebar aborted with a warning as error with the following messages:

/Users/susan.potter/Code/oss/carson/deps/poolboy/src/poolboy.erl:24: type queue/0 is deprecated and will be removed in
 OTP 18.0; use use queue:queue/0 or preferably queue:queue/1                                                          
/Users/susan.potter/Code/oss/carson/deps/poolboy/src/poolboy.erl:25: type queue/0 is deprecated and will be removed in
 OTP 18.0; use use queue:queue/0 or preferably queue:queue/1                                                          
ERROR: compile failed while processing /Users/susan.potter/Code/oss/carson/deps/poolboy: rebar_abort

This pull request addresses the above deprecations so I can build keeping with warnings_as_errors on, which I prefer. This might break compatibility with much older versions of Erlang but for practical purposes I do not believe this will pose a problem for versions that poolboy wishes to support.

This is the erlang-questions ML thread where Andreas Schumacher
outlines the deprecation warnings in R17 to prepare the way for R18.0.

@mbbx6spp mbbx6spp force-pushed the fix-R18-deprecations branch 2 times, most recently from 3f9949d to ea82c42 Compare November 6, 2014 20:43
When including the latest on `basho:develop` for poolboy as a dependency in
an Erlang project, rebar aborted with a warning as error with the following
messages:

```
/Users/susan.potter/Code/oss/carson/deps/poolboy/src/poolboy.erl:24: type queue/0 is deprecated and will be removed in
OTP 18.0; use use queue:queue/0 or preferably queue:queue/1
/Users/susan.potter/Code/oss/carson/deps/poolboy/src/poolboy.erl:25: type queue/0 is deprecated and will be removed in
OTP 18.0; use use queue:queue/0 or preferably queue:queue/1
ERROR: compile failed while processing /Users/susan.potter/Code/oss/carson/deps/poolboy: rebar_abort
```

*This pull request addresses the above deprecations so I can build keeping
with `warnings_as_errors` on, which I prefer. This might break compatibility
with much older versions of Erlang but for practical purposes I do not believe
this will pose a problem for versions that poolboy wishes to support.*

This is the [erlang-questions ML thread] [1] where Andreas Schumacher
outlines the deprecation warnings in R17 to prepare the way for R18.0.

[1]: http://erlang.org/pipermail/erlang-questions/2014-March/078081.html "R18.0 type deprecations"
@mbbx6spp mbbx6spp closed this Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant