From: Ivan Maidanski Date: Wed, 16 Nov 2016 07:34:08 +0000 (+0300) Subject: Eliminate 'function result not used' code defect in GC_mark_local X-Git-Tag: v7.6.2~325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0674677eafccc0e57180d66a3a3e598bbd05c914;p=gc Eliminate 'function result not used' code defect in GC_mark_local * mark.c (GC_mark_local): Explicitly cast AO_compare_and_swap result to void (to outline that the result is unused intentionally). --- diff --git a/mark.c b/mark.c index 81360307..20307fb6 100644 --- a/mark.c +++ b/mark.c @@ -1079,9 +1079,9 @@ STATIC void GC_mark_local(mse *local_mark_stack, int id) if ((word)my_first_nonempty < (word)global_first_nonempty) { my_first_nonempty = global_first_nonempty; } else if ((word)global_first_nonempty < (word)my_first_nonempty) { - AO_compare_and_swap(&GC_first_nonempty, - (AO_t) global_first_nonempty, - (AO_t) my_first_nonempty); + (void)AO_compare_and_swap(&GC_first_nonempty, + (AO_t)global_first_nonempty, + (AO_t)my_first_nonempty); /* If this fails, we just go ahead, without updating */ /* GC_first_nonempty. */ }