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:
parent
75d21d9f45
commit
63e7ca4623
@ -27,6 +27,8 @@
|
||||
#include "util.h"
|
||||
#endif
|
||||
|
||||
static JANET_THREAD_LOCAL JanetRNG janet_vm_rng = {0, 0, 0, 0, 0};
|
||||
|
||||
static Janet janet_rng_get(void *p, Janet key);
|
||||
|
||||
static void janet_rng_marshal(void *p, JanetMarshalContext *ctx) {
|
||||
@ -58,8 +60,6 @@ static JanetAbstractType JanetRNG_type = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static JANET_THREAD_LOCAL JanetRNG janet_vm_rng = {0};
|
||||
|
||||
JanetRNG *janet_default_rng(void) {
|
||||
return &janet_vm_rng;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user