mirror of
https://github.com/json-c/json-c.git
synced 2026-03-22 14:39:07 +08:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user