]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Suppressed a compiler warning.
authorBart Van Assche <bvanassche@acm.org>
Thu, 10 Jul 2008 12:13:40 +0000 (12:13 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 10 Jul 2008 12:13:40 +0000 (12:13 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8413

drd/tests/atomic_var.c

index 5e220fafd58a7e7425f1fec1852f3caed721af63..a4c6c8f17ee10b971c880b474cb514611c53bb2f 100644 (file)
@@ -34,7 +34,7 @@ static int s_y = 0;
 static void* thread_func_1(void* arg)
 {
   s_y = 1;
-  __sync_add_and_fetch(&s_x, 1);
+  (void) __sync_add_and_fetch(&s_x, 1);
   return 0;
 }