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: v8.0.0~1036 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6929c9cbd533b041e6884f1fa3bbfff14191f29d;p=platform%2Fupstream%2Flibgc.git 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 06ed99c..f8928b3 100644 --- a/mark.c +++ b/mark.c @@ -1080,9 +1080,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. */ }