Commit 6db510a7 authored by Dominik Charousset's avatar Dominik Charousset

Fix warnings on Clang

parent dd8bc084
...@@ -152,12 +152,12 @@ void prettify_type_name(std::string& class_name, const char* c_class_name) { ...@@ -152,12 +152,12 @@ void prettify_type_name(std::string& class_name, const char* c_class_name) {
} // namespace <anonymous> } // namespace <anonymous>
logger::event::event(int lvl, std::string pfx, std::string msg) logger::event::event(int lvl, std::string pfx, std::string content)
: next(nullptr), : next(nullptr),
prev(nullptr), prev(nullptr),
level(lvl), level(lvl),
prefix(std::move(pfx)), prefix(std::move(pfx)),
msg(std::move(msg)) { msg(std::move(content)) {
// nop // nop
} }
......
...@@ -64,7 +64,6 @@ scribe_ptr test_multiplexer::new_scribe(native_socket) { ...@@ -64,7 +64,6 @@ scribe_ptr test_multiplexer::new_scribe(native_socket) {
std::cerr << "test_multiplexer::add_tcp_scribe called with native socket" std::cerr << "test_multiplexer::add_tcp_scribe called with native socket"
<< std::endl; << std::endl;
abort(); abort();
return nullptr;
} }
scribe_ptr test_multiplexer::new_scribe(connection_handle hdl) { scribe_ptr test_multiplexer::new_scribe(connection_handle hdl) {
...@@ -139,7 +138,6 @@ doorman_ptr test_multiplexer::new_doorman(native_socket) { ...@@ -139,7 +138,6 @@ doorman_ptr test_multiplexer::new_doorman(native_socket) {
std::cerr << "test_multiplexer::add_tcp_doorman called with native socket" std::cerr << "test_multiplexer::add_tcp_doorman called with native socket"
<< std::endl; << std::endl;
abort(); abort();
return nullptr;
} }
doorman_ptr test_multiplexer::new_doorman(accept_handle hdl, uint16_t port) { doorman_ptr test_multiplexer::new_doorman(accept_handle hdl, uint16_t port) {
...@@ -210,7 +208,7 @@ expected<doorman_ptr> test_multiplexer::new_tcp_doorman(uint16_t desired_port, ...@@ -210,7 +208,7 @@ expected<doorman_ptr> test_multiplexer::new_tcp_doorman(uint16_t desired_port,
while (is_known_port(port)) while (is_known_port(port))
--port; --port;
// Do the same for finding an acceptor handle. // Do the same for finding an acceptor handle.
auto y = std::numeric_limits<uint64_t>::max(); auto y = std::numeric_limits<int64_t>::max();
while (is_known_handle(accept_handle::from_int(y))) while (is_known_handle(accept_handle::from_int(y)))
--y; --y;
hdl = accept_handle::from_int(y); hdl = accept_handle::from_int(y);
......
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