]> granicus.if.org Git - json-c/commitdiff
Tell the compiler we're intentionally ignoring the return value from __sync_val_compa...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 27 May 2015 02:02:19 +0000 (19:02 -0700)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 27 May 2015 02:02:19 +0000 (19:02 -0700)
linkhash.c

index 572f4dccf89167f416b49688ccb2fc1b807e1b22..aec899fd092862b51a236980db253d5310ca6d2d 100644 (file)
@@ -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