diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-05-25 18:35:37 -0700 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-05-26 14:18:49 -0700 |
commit | b31b30131bbf58280a515c40027aa958b81b5cd6 (patch) | |
tree | ffb27c6af19d411caee647418297a8919b40780f /vm/test | |
parent | e1bccb9fb7857a08406954702b4479c8f5292de5 (diff) | |
download | android_dalvik-b31b30131bbf58280a515c40027aa958b81b5cd6.tar.gz android_dalvik-b31b30131bbf58280a515c40027aa958b81b5cd6.tar.bz2 android_dalvik-b31b30131bbf58280a515c40027aa958b81b5cd6.zip |
Eliminate more unused variables and compiler warnings.
This change also introduces wrappers for condition variable operations
similar to what we have already for mutex operations.
Almost all the remaining warnings are now in the compiler or non-debug
uses of the CHECK_JIT macro.
Change-Id: I9f492f1582a06065e3a52287c7834adddfbefff9
Diffstat (limited to 'vm/test')
-rw-r--r-- | vm/test/AtomicSpeed.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vm/test/AtomicSpeed.c b/vm/test/AtomicSpeed.c index e2ffbeff3..b569668fb 100644 --- a/vm/test/AtomicSpeed.c +++ b/vm/test/AtomicSpeed.c @@ -47,16 +47,16 @@ u8 dvmTestAtomicSpeedSub(int repeatCount) j += i; j += i; j += i; j += i; j += i; #else // succeed 10x (Dream: 155.9ns) - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); - ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); + (void)ATOMIC_CMP_SWAP(valuePtr, 7, 7); // fail 10x (Dream: 158.5ns) /* |