Commit 030d515c by Marcus Winter

removed cpplint warnings

parent 46ac2bd4
...@@ -180,7 +180,7 @@ void ScanIteratorCheck(RAIIn first, RAIIn last, RAIOut output_iterator, ...@@ -180,7 +180,7 @@ void ScanIteratorCheck(RAIIn first, RAIIn last, RAIOut output_iterator,
if (num_cores == 0) { if (num_cores == 0) {
EMBB_THROW(embb::base::ErrorException, "No cores in execution policy"); EMBB_THROW(embb::base::ErrorException, "No cores in execution policy");
} }
ReturnType values[MTAPI_NODE_MAX_TASKS_DEFAULT]; ReturnType values[MTAPI_NODE_MAX_TASKS_DEFAULT];
if (block_size == 0) { if (block_size == 0) {
block_size = static_cast<size_t>(distance) / num_cores; block_size = static_cast<size_t>(distance) / num_cores;
......
...@@ -205,7 +205,7 @@ void ForEachTest::TestPolicy() { ...@@ -205,7 +205,7 @@ void ForEachTest::TestPolicy() {
for (size_t i = 0; i < count; i++) { for (size_t i = 0; i < count; i++) {
PT_EXPECT_EQ(vector[i], init[i]*init[i]); PT_EXPECT_EQ(vector[i], init[i]*init[i]);
} }
vector = init; vector = init;
ForEach(vector.begin(), vector.end(), Square(), ExecutionPolicy(true, 1)); ForEach(vector.begin(), vector.end(), Square(), ExecutionPolicy(true, 1));
for (size_t i = 0; i < count; i++) { for (size_t i = 0; i < count; i++) {
......
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