[erlang-questions] Dialyzer: how to ignore some warnings?

68 views
Skip to first unread message

Zabrane Mickael

unread,
Sep 12, 2012, 9:58:37 AM9/12/12
to Erlang Questions, Kostis Sagonas
Hi guys, Hi Kostis,

Dialyzer (R15B02, OSX 10.7.4) returns this:
pimco_net.erl:146: Call to missing or unexported function prim_inet:async_acceptor/2

Is there a way to tell Dialyzer to simply ignore this warning (and any other one coming from "prim_inet") ?
Thanks

Regards,
Zabrane

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Zabrane Mickael

unread,
Sep 12, 2012, 12:03:28 PM9/12/12
to Stavros Aronis, erlang-pr...@googlegroups.com, Erlang Questions

On Sep 12, 2012, at 5:48 PM, Stavros Aronis wrote:

Not really.

For the particular case, if I understand correctly, it used to be the case that any functions that are implemented as NIFs have a stub in the .erl source file that throws an exception (if that code was really executed instead of the low level implementation). Is prim_inet:async_acceptor a NIF without such a stub?

OTP guys?

Regards,
Zabrane



Regards,
Stavros

Lukas Larsson

unread,
Sep 12, 2012, 12:28:03 PM9/12/12
to Zabrane Mickael, Stavros Aronis, Erlang Questions
Have you misspelled prim_inet:async_accept/2 in the mail or also in the source?

Lukas

Zabrane Mickael

unread,
Sep 12, 2012, 12:48:23 PM9/12/12
to Lukas Larsson, Stavros Aronis, Erlang Questions
Good catch Lukas. You should read: prim_inet:async_accept/2

Regards,
Zabrane
Reply all
Reply to author
Forward
0 new messages