]> granicus.if.org Git - libatomic_ops/commit
Specify AO_fetch_and_add/sub1 result is unused in test_atomic
authorIvan Maidanski <ivmai@mail.ru>
Thu, 18 Oct 2012 15:53:34 +0000 (19:53 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 18 Oct 2012 15:53:34 +0000 (19:53 +0400)
commitb9aed2d60cfc5cf98a91a39c46b7c219a44dfcf1
tree9c0dd23ad90c878e57381a9a1eb9c6004e3514c2
parent21a8083dc6e955b29e7a19b05d213bceaed5c6e9
Specify AO_fetch_and_add/sub1 result is unused in test_atomic

* tests/test_atomic.c (add1sub1_thr): Explicitly cast result of
AO_fetch_and_sub1 and AO_fetch_and_add1 to void (to outline that the
result is unused intentionally); reformat code.
tests/test_atomic.c