Skip to content

Commit

Permalink
Comment out the warning about racy random seed initialization in lh_c…
Browse files Browse the repository at this point in the history
…har_hash(), if you're on a platform where it'll be triggered it just makes it a pain to build.
  • Loading branch information
hawicz committed Jul 9, 2017
1 parent f7a44ad commit 1d3e97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linkhash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1d3e97f

Please sign in to comment.