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
3838dc36
authored
Apr 29, 2016
by
lucapegolotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
containers_cpp: solve various compiler warnings
parent
f5ca8fe4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
containers_cpp/include/embb/containers/internal/blocking_push_and_pop_container.h
+3
-0
containers_cpp/test/map_test-inl.h
+3
-2
containers_cpp/test/set_test-inl.h
+1
-1
No files found.
containers_cpp/include/embb/containers/internal/blocking_push_and_pop_container.h
View file @
3838dc36
...
@@ -67,6 +67,9 @@ class BlockingPushAndPopContainer {
...
@@ -67,6 +67,9 @@ class BlockingPushAndPopContainer {
SpecializedPop
(
element
);
SpecializedPop
(
element
);
}
}
public
:
virtual
~
BlockingPushAndPopContainer
()
{}
};
};
}
// namespace containers
}
// namespace containers
...
...
containers_cpp/test/map_test-inl.h
View file @
3838dc36
...
@@ -78,7 +78,8 @@ void MapTest<T>::MapTest1_Post() {
...
@@ -78,7 +78,8 @@ void MapTest<T>::MapTest1_Post() {
for
(
unsigned
int
i
=
0
;
i
<
map_elements
;
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
map_elements
;
i
++
)
{
PT_ASSERT
(
map_contain_vector
[
i
]
==
map
.
Contains
(
static_cast
<
int
>
(
i
)));
PT_ASSERT
(
map_contain_vector
[
i
]
==
map
.
Contains
(
static_cast
<
int
>
(
i
)));
if
(
map_contain_vector
[
i
])
if
(
map_contain_vector
[
i
])
PT_ASSERT
((
map
[
i
]
==
i
*
2
));
PT_ASSERT
(
map
[
static_cast
<
int
>
(
i
)]
==
static_cast
<
const
int
>
(
i
*
2
));
}
}
}
}
...
@@ -89,7 +90,7 @@ void MapTest<T>::MapTest1_ThreadMethod() {
...
@@ -89,7 +90,7 @@ void MapTest<T>::MapTest1_ThreadMethod() {
PT_ASSERT
((
EMBB_SUCCESS
==
return_val
));
PT_ASSERT
((
EMBB_SUCCESS
==
return_val
));
srand
(
time
(
NULL
));
srand
(
static_cast
<
unsigned
int
>
(
time
(
NULL
)
));
std
::
vector
<
int
>&
my_values
=
thread_local_vectors_value
[
thread_index
];
std
::
vector
<
int
>&
my_values
=
thread_local_vectors_value
[
thread_index
];
std
::
vector
<
int
>&
my_keys
=
thread_local_vectors_key
[
thread_index
];
std
::
vector
<
int
>&
my_keys
=
thread_local_vectors_key
[
thread_index
];
...
...
containers_cpp/test/set_test-inl.h
View file @
3838dc36
...
@@ -89,7 +89,7 @@ void SetTest<T>::SetTest1_ThreadMethod() {
...
@@ -89,7 +89,7 @@ void SetTest<T>::SetTest1_ThreadMethod() {
PT_ASSERT
(
EMBB_SUCCESS
==
return_val
);
PT_ASSERT
(
EMBB_SUCCESS
==
return_val
);
srand
(
time
(
NULL
));
srand
(
static_cast
<
unsigned
int
>
(
time
(
NULL
)
));
std
::
vector
<
int
>&
my_elements
=
thread_local_vectors
[
thread_index
];
std
::
vector
<
int
>&
my_elements
=
thread_local_vectors
[
thread_index
];
...
...
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