aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-11-15 19:51:17 +0100
committerSverker Eriksson <[email protected]>2018-11-15 19:51:17 +0100
commitcf8aae2646bc0c200d44577ca2942d3b53bd30e9 (patch)
treeff58fe683c4c53acb9223aa33b7936a6f051d1f7 /lib
parentefe633d2c22daea6225935a2945fa5d3dd70e50c (diff)
parentd8c407e2baede7654a580250a08f58d5f1662bcc (diff)
downloadotp-cf8aae2646bc0c200d44577ca2942d3b53bd30e9.tar.gz
otp-cf8aae2646bc0c200d44577ca2942d3b53bd30e9.tar.bz2
otp-cf8aae2646bc0c200d44577ca2942d3b53bd30e9.zip
Merge branch 'sverker/crypto/gcc-8-warning' into maint
* sverker/crypto/gcc-8-warning: crypto: Fix gcc 8 warning
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/c_src/crypto_callback.c6
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