diff options
author | Jack Lloyd <[email protected]> | 2020-09-27 10:44:45 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-09-27 10:44:45 -0400 |
commit | 4e19c9409a64d73aa88aeec8af1f827737baef63 (patch) | |
tree | d9ec4f81a46396265f13bad16018c097c5f953cd /src/cli | |
parent | 1841a569f7fd058897c619e450e5c41cc1c5af7a (diff) |
Fix some warnings in the Boost specific code/tests
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/tls_http_server.cpp | 2 | ||||
-rw-r--r-- | src/cli/tls_proxy.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/tls_http_server.cpp b/src/cli/tls_http_server.cpp index b84592043..aaf740fcf 100644 --- a/src/cli/tls_http_server.cpp +++ b/src/cli/tls_http_server.cpp @@ -37,7 +37,7 @@ #include "tls_helpers.h" #if BOOST_VERSION >= 107000 -#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context()) +#define GET_IO_SERVICE(s) (static_cast<boost::asio::io_context&>((s).get_executor().context())) #else #define GET_IO_SERVICE(s) ((s).get_io_service()) #endif diff --git a/src/cli/tls_proxy.cpp b/src/cli/tls_proxy.cpp index 15caa7043..bd96530c2 100644 --- a/src/cli/tls_proxy.cpp +++ b/src/cli/tls_proxy.cpp @@ -34,7 +34,7 @@ #include "tls_helpers.h" #if BOOST_VERSION >= 107000 -#define GET_IO_SERVICE(s) ((boost::asio::io_context&)(s).get_executor().context()) +#define GET_IO_SERVICE(s) (static_cast<boost::asio::io_context&>((s).get_executor().context())) #else #define GET_IO_SERVICE(s) ((s).get_io_service()) #endif |