1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 03:19:54 +00:00

Fix warning on travis CI with Clang.

This commit is contained in:
Calvin Rose 2019-11-09 10:10:07 -06:00
parent 75d21d9f45
commit 63e7ca4623

View File

@ -27,6 +27,8 @@
#include "util.h" #include "util.h"
#endif #endif
static JANET_THREAD_LOCAL JanetRNG janet_vm_rng = {0, 0, 0, 0, 0};
static Janet janet_rng_get(void *p, Janet key); static Janet janet_rng_get(void *p, Janet key);
static void janet_rng_marshal(void *p, JanetMarshalContext *ctx) { static void janet_rng_marshal(void *p, JanetMarshalContext *ctx) {
@ -58,8 +60,6 @@ static JanetAbstractType JanetRNG_type = {
NULL NULL
}; };
static JANET_THREAD_LOCAL JanetRNG janet_vm_rng = {0};
JanetRNG *janet_default_rng(void) { JanetRNG *janet_default_rng(void) {
return &janet_vm_rng; return &janet_vm_rng;
} }