|
From: <sv...@va...> - 2009-08-12 13:46:43
|
Author: bart
Date: 2009-08-12 14:30:55 +0100 (Wed, 12 Aug 2009)
New Revision: 10795
Log:
Fixed compiler warnings triggered by annotate_rwlock.c
Modified:
trunk/drd/tests/annotate_rwlock.c
Modified: trunk/drd/tests/annotate_rwlock.c
===================================================================
--- trunk/drd/tests/annotate_rwlock.c 2009-08-12 12:55:56 UTC (rev 10794)
+++ trunk/drd/tests/annotate_rwlock.c 2009-08-12 13:30:55 UTC (rev 10795)
@@ -66,13 +66,13 @@
#else
pthread_yield();
#endif
- __sync_fetch_and_sub(&p->locked, 1);
+ (void) __sync_fetch_and_sub(&p->locked, 1);
}
p->reader_count++;
assert(p->reader_count >= 0);
assert(p->writer_count >= 0);
assert(p->reader_count == 0 || p->writer_count == 0);
- __sync_fetch_and_sub(&p->locked, 1);
+ (void) __sync_fetch_and_sub(&p->locked, 1);
ANNOTATE_READERLOCK_ACQUIRED(p);
}
@@ -90,13 +90,13 @@
#else
pthread_yield();
#endif
- __sync_fetch_and_sub(&p->locked, 1);
+ (void) __sync_fetch_and_sub(&p->locked, 1);
}
p->writer_count++;
assert(p->reader_count >= 0);
assert(p->writer_count >= 0);
assert(p->reader_count == 0 || p->writer_count == 0);
- __sync_fetch_and_sub(&p->locked, 1);
+ (void) __sync_fetch_and_sub(&p->locked, 1);
ANNOTATE_WRITERLOCK_ACQUIRED(p);
}
@@ -117,7 +117,7 @@
assert(p->reader_count >= 0);
assert(p->writer_count >= 0);
assert(p->reader_count == 0 || p->writer_count == 0);
- __sync_fetch_and_sub(&p->locked, 1);
+ (void) __sync_fetch_and_sub(&p->locked, 1);
}
static void* thread_func(void* arg)
|