Commit 49255ca3 authored by Dorian Guillois's avatar Dorian Guillois
Browse files

Remove warning.

parent f60d2dd1
......@@ -272,9 +272,10 @@ void parser::_parse(std::string const& cmd) {
"received: bad command line (" << cmd.c_str() + pos
<< ")");
if (opt.get_timeout() > 0 && opt.get_timeout() < timeout)
if (opt.get_timeout()
&& opt.get_timeout() < static_cast<unsigned int>(timeout))
timeout = opt.get_timeout();
else if (opt.get_timeout() > timeout)
else if (opt.get_timeout() > static_cast<unsigned int>(timeout))
throw (basic_error() << "invalid execution request " \
"received: timeout > to monitoring engine timeout");
}
......
Supports Markdown
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