Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d59cff75
authored
Jan 19, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base_cpp: removed cppcheck warnings
parent
4a3b52b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
base_cpp/test/atomic_test.cc
+0
-2
base_cpp/test/mutex_test.cc
+1
-1
No files found.
base_cpp/test/atomic_test.cc
View file @
d59cff75
...
@@ -346,8 +346,6 @@ void AtomicTest::BasicTests() {
...
@@ -346,8 +346,6 @@ void AtomicTest::BasicTests() {
//Boolean operations...
//Boolean operations...
// And
// And
i
=
0
;
i
=
0
;
i
&=
0
;
PT_EXPECT
(
i
==
0
);
i
&=
1
;
i
&=
1
;
PT_EXPECT
(
i
==
0
);
PT_EXPECT
(
i
==
0
);
i
=
1
;
i
=
1
;
...
...
base_cpp/test/mutex_test.cc
View file @
d59cff75
...
@@ -93,10 +93,10 @@ void MutexTest::PostLockGuardCount() {
...
@@ -93,10 +93,10 @@ void MutexTest::PostLockGuardCount() {
}
}
void
MutexTest
::
TestUniqueLock
()
{
void
MutexTest
::
TestUniqueLock
()
{
{
// Test standard usage and releasing
#ifdef EMBB_USE_EXCEPTIONS
#ifdef EMBB_USE_EXCEPTIONS
bool
exception_thrown
=
false
;
bool
exception_thrown
=
false
;
#endif
#endif
{
// Test standard usage and releasing
UniqueLock
<
Mutex
>
lock
(
mutex_
);
UniqueLock
<
Mutex
>
lock
(
mutex_
);
PT_EXPECT_EQ
(
lock
.
OwnsLock
(),
true
);
PT_EXPECT_EQ
(
lock
.
OwnsLock
(),
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment