From: Eric Haszlakiewicz Date: Wed, 27 May 2015 02:02:19 +0000 (-0700) Subject: Tell the compiler we're intentionally ignoring the return value from __sync_val_compa... X-Git-Tag: json-c-0.13-20171207~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd8bd7f617361b521fc92152e4daca4362c6ab91;p=json-c Tell the compiler we're intentionally ignoring the return value from __sync_val_compare_and_swap(). --- diff --git a/linkhash.c b/linkhash.c index 572f4dc..aec899f 100644 --- a/linkhash.c +++ b/linkhash.c @@ -413,7 +413,7 @@ unsigned long lh_char_hash(const void *k) /* we can't use -1 as it is the unitialized sentinel */ while ((seed = json_c_get_random_seed()) == -1); #if defined __GNUC__ - __sync_val_compare_and_swap(&random_seed, -1, seed); + (void)__sync_val_compare_and_swap(&random_seed, -1, seed); #elif defined _MSC_VER InterlockedCompareExchange((LONG *)&random_seed, seed, -1); #else