diff --git a/CHANGELOG.md b/CHANGELOG.md index 141339d7..f547d119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 258: * Fix separate compilation in CI +* Fix clang inititalization warning in websocket -------------------------------------------------------------------------------- diff --git a/include/boost/beast/websocket/detail/frame.hpp b/include/boost/beast/websocket/detail/frame.hpp index 57a482c0..f217e04a 100644 --- a/include/boost/beast/websocket/detail/frame.hpp +++ b/include/boost/beast/websocket/detail/frame.hpp @@ -215,9 +215,9 @@ read_close( std::uint16_t code_be; cr.reason.resize(n - 2); - std::array out_bufs{ + std::array out_bufs{{ net::mutable_buffer(&code_be, sizeof(code_be)), - net::mutable_buffer(&cr.reason[0], n - 2)}; + net::mutable_buffer(&cr.reason[0], n - 2)}}; net::buffer_copy(out_bufs, bs);