diff options
author | Sverker Eriksson <[email protected]> | 2018-11-05 16:51:05 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-11-05 16:51:05 +0100 |
commit | d8c407e2baede7654a580250a08f58d5f1662bcc (patch) | |
tree | c3b8776763e69e817c7efd658e23b44faa4cb9ac /lib/crypto/c_src/crypto_callback.c | |
parent | 04dde143c505da42ca620189cfa1d3400610ebe1 (diff) | |
download | otp-d8c407e2baede7654a580250a08f58d5f1662bcc.tar.gz otp-d8c407e2baede7654a580250a08f58d5f1662bcc.tar.bz2 otp-d8c407e2baede7654a580250a08f58d5f1662bcc.zip |
crypto: Fix gcc 8 warning
"division 'sizeof (...)' does not compute the number of array elements
[-Wsizeof-pointer-div]"
Diffstat (limited to 'lib/crypto/c_src/crypto_callback.c')
-rw-r--r-- | lib/crypto/c_src/crypto_callback.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto_callback.c b/lib/crypto/c_src/crypto_callback.c index 23d2bed057..0cc7dd609d 100644 --- a/lib/crypto/c_src/crypto_callback.c +++ b/lib/crypto/c_src/crypto_callback.c @@ -179,6 +179,10 @@ DLLEXPORT struct crypto_callbacks* get_crypto_callbacks(int nlocks) /* This is not really a NIF library, but we use ERL_NIF_INIT in order to * get access to the erl_nif API (on Windows). */ -ERL_NIF_INIT(dummy, (ErlNifFunc*)NULL , NULL, NULL, NULL, NULL) +static struct { + int dummy__; + ErlNifFunc funcv[0]; +} empty; +ERL_NIF_INIT(dummy, empty.funcv, NULL, NULL, NULL, NULL) #endif |