Commit a7b756a2 authored by neverlord's avatar neverlord

fixed warning with -DNDEBUG

parent 8cf40567
......@@ -143,7 +143,10 @@ int main(int argc, char** argv)
//cout << "value = " << value << endl
// << "expected => 2^" << num << " = "
// << (1 << num) << endl;
assert(value == (((uint32_t) 1) << num));
if (value != (((uint32_t) 1) << num))
{
cerr << "ERROR: received wrong result!\n";
}
}
);
await_all_others_done();
......
......@@ -128,6 +128,9 @@ void check_factors(factors const& vec)
assert(vec.size() == 2);
assert(vec[0] == s_factor1);
assert(vec[1] == s_factor2);
# ifdef NDEBUG
static_cast<void>(vec);
# endif
}
struct fsm_worker : fsm_actor<fsm_worker>
......
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 to comment