File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
include/boost/beast/websocket/impl Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ Version 358:
7
7
* Removed moved sections from documentation
8
8
* Removed superfluous log messages from tests
9
9
* Fixed portability issues for building tests in MinGW
10
- * Fixed portability issues for building tests in MinGW
11
10
* Fixed ` std::is_trivial ` deprecation warnings
11
+ * Fixed ` -Wmaybe-uninitialized ` warnings
12
12
13
13
--------------------------------------------------------------------------------
14
14
Original file line number Diff line number Diff line change 19
19
* [issue 2999] Used `handshake_timeout` for closing handshake during read operations
20
20
* [issue 3003] Added missing `cstdint` header to `detail/cpu_info.hpp`
21
21
* [issue 3016] Fixed `std::is_trivial` deprecation warnings
22
+ * [issue 3019] Fixed `-Wmaybe-uninitialized` warnings
22
23
23
24
[*Improvements]
24
25
Original file line number Diff line number Diff line change @@ -825,8 +825,7 @@ parse_fh(
825
825
{
826
826
case 126 :
827
827
{
828
-
829
- std::uint16_t len_be;
828
+ std::uint16_t len_be = {};
830
829
BOOST_ASSERT (buffer_bytes (cb) >= sizeof (len_be));
831
830
cb.consume (net::buffer_copy (
832
831
net::mutable_buffer (&len_be, sizeof (len_be)), cb));
@@ -841,7 +840,7 @@ parse_fh(
841
840
}
842
841
case 127 :
843
842
{
844
- std::uint64_t len_be;
843
+ std::uint64_t len_be = {} ;
845
844
BOOST_ASSERT (buffer_bytes (cb) >= sizeof (len_be));
846
845
cb.consume (net::buffer_copy (
847
846
net::mutable_buffer (&len_be, sizeof (len_be)), cb));
@@ -857,7 +856,7 @@ parse_fh(
857
856
}
858
857
if (fh.mask )
859
858
{
860
- std::uint32_t key_le;
859
+ std::uint32_t key_le = {} ;
861
860
BOOST_ASSERT (buffer_bytes (cb) >= sizeof (key_le));
862
861
cb.consume (net::buffer_copy (
863
862
net::mutable_buffer (&key_le, sizeof (key_le)), cb));
You can’t perform that action at this time.
0 commit comments