mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Fix clang inititalization warning in websocket
Clang suggests using double braces when initializing a single subobject of an aggregate. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
Version 258:
|
||||
|
||||
* Fix separate compilation in CI
|
||||
* Fix clang inititalization warning in websocket
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@ -215,9 +215,9 @@ read_close(
|
||||
|
||||
std::uint16_t code_be;
|
||||
cr.reason.resize(n - 2);
|
||||
std::array<net::mutable_buffer, 2> out_bufs{
|
||||
std::array<net::mutable_buffer, 2> 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);
|
||||
|
||||
|
Reference in New Issue
Block a user