summaryrefslogtreecommitdiff
path: root/linkhash.c
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-07-09 15:13:02 -0700
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-07-09 15:13:02 -0700
commit1d3e97f2ab31f0a16cb2e1a456a9a0eeec168585 (patch)
tree8000a5ee70c127087ecd9b457d7b3afd171e796b /linkhash.c
parentf7a44ad1017e3b144a2e40ddc5b31153f70253bc (diff)
downloadjson-c-1d3e97f2ab31f0a16cb2e1a456a9a0eeec168585.tar.gz
Comment out the warning about racy random seed initialization in lh_char_hash(), if you're on a platform where it'll be triggered it just makes it a pain to build.
Diffstat (limited to 'linkhash.c')
-rw-r--r--linkhash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linkhash.c b/linkhash.c
index 830caa8..5497061 100644
--- a/linkhash.c
+++ b/linkhash.c
@@ -477,7 +477,7 @@ static unsigned long lh_char_hash(const void *k)
#elif defined _MSC_VER || defined __MINGW32__
InterlockedCompareExchange(&random_seed, seed, -1);
#else
-#warning "racy random seed initializtion if used by multiple threads"
+//#warning "racy random seed initializtion if used by multiple threads"
random_seed = seed; /* potentially racy */
#endif
}