forked from boostorg/beast
Fix -Wmissing-braces warnings
This commit is contained in:
committed by
Mohammad Nejati
parent
b5d7c9998b
commit
e55b559ed3
@@ -62,10 +62,10 @@ struct test_buffers_generator
|
|||||||
if (!buffer_bytes(cur_)) {
|
if (!buffer_bytes(cur_)) {
|
||||||
if (iterations_) {
|
if (iterations_) {
|
||||||
cur_ = const_buffers_type(
|
cur_ = const_buffers_type(
|
||||||
underlying_buffer_sequence{
|
underlying_buffer_sequence{{
|
||||||
net::buffer("abcde", iterations_),
|
net::buffer("abcde", iterations_),
|
||||||
net::buffer("12345", iterations_),
|
net::buffer("12345", iterations_),
|
||||||
});
|
}});
|
||||||
iterations_ -= 1;
|
iterations_ -= 1;
|
||||||
}
|
}
|
||||||
if(emulate_error_ && iterations_ == 3)
|
if(emulate_error_ && iterations_ == 3)
|
||||||
|
@@ -144,11 +144,11 @@ snippets()
|
|||||||
// an array of protocols supported by this server
|
// an array of protocols supported by this server
|
||||||
// in descending order of preference
|
// in descending order of preference
|
||||||
static const std::array<string_view, 3>
|
static const std::array<string_view, 3>
|
||||||
supported = {
|
supported = {{
|
||||||
"v3.my.chat",
|
"v3.my.chat",
|
||||||
"v2.my.chat",
|
"v2.my.chat",
|
||||||
"v1.my.chat"
|
"v1.my.chat"
|
||||||
};
|
}};
|
||||||
|
|
||||||
std::string result;
|
std::string result;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user