Browse Source

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.

tags/json-c-0.13-20171207
Eric Haszlakiewicz 8 years ago
parent
commit
1d3e97f2ab
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linkhash.c

+ 1
- 1
linkhash.c View File

@@ -477,7 +477,7 @@ static unsigned long lh_char_hash(const void *k)
#elif defined _MSC_VER || defined __MINGW32__ #elif defined _MSC_VER || defined __MINGW32__
InterlockedCompareExchange(&random_seed, seed, -1); InterlockedCompareExchange(&random_seed, seed, -1);
#else #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 */ random_seed = seed; /* potentially racy */
#endif #endif
} }


Loading…
Cancel
Save