Commit d59cff75 by Marcus Winter

base_cpp: removed cppcheck warnings

parent 4a3b52b0
......@@ -346,8 +346,6 @@ void AtomicTest::BasicTests() {
//Boolean operations...
// And
i = 0;
i &= 0;
PT_EXPECT(i == 0);
i &= 1;
PT_EXPECT(i == 0);
i = 1;
......
......@@ -93,10 +93,10 @@ void MutexTest::PostLockGuardCount() {
}
void MutexTest::TestUniqueLock() {
{ // Test standard usage and releasing
#ifdef EMBB_USE_EXCEPTIONS
bool exception_thrown = false;
#endif
{ // Test standard usage and releasing
UniqueLock<Mutex> lock(mutex_);
PT_EXPECT_EQ(lock.OwnsLock(), true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment