Avoiding false Dialyzer warnings for NIFs

Björn Gustavsson <>
Fri May 21 16:55:45 CEST 2010

I have implemented a new erlang:nif_error/1 BIF that can
be used in the stub for NIFs to avoid false Dialyzer


In a second commit, I have modified the crypto
module to use erlang:nif_error/1.

I have run the crypto test suite, but I have not yet
verified that the false Dialyzer warnings disappear.

Feedback welcome.

The branch can be fetched like this:

git fetch git://github.com/bjorng/otp.git bg/nif_error

Björn Gustavsson, Erlang/OTP, Ericsson AB

More information about the erlang-patches mailing list