Boost C++ Libraries: Ticket #8347: io_op::want_ uninitialized in c'tor https://svn.boost.org/trac10/ticket/8347 <p> template &lt;typename Stream, typename Operation, typename Handler&gt; class io_op { public: </p> <blockquote> <p> io_op(Stream&amp; next_layer, stream_core&amp; core, </p> <blockquote> <p> const Operation&amp; op, Handler&amp; handler) </p> </blockquote> <p> : next_layer_(next_layer), </p> <blockquote> <p> core_(core), op_(op), bytes_transferred_(0), handler_(BOOST_ASIO_MOVE_CAST(Handler)(handler)) </p> </blockquote> </blockquote> <blockquote> <p> { </p> </blockquote> <p> CID 10923 (<a href="https://svn.boost.org/trac10/query?id=4-6" title="Tickets 4-6">#4-6</a> of 6): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member "want_" is not initialized in this constructor nor in any functions that it calls. </p> <blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8347 Trac 1.4.3 chris_kohlhoff Fri, 24 May 2013 03:47:30 GMT severity changed https://svn.boost.org/trac10/ticket/8347#comment:1 https://svn.boost.org/trac10/ticket/8347#comment:1 <ul> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Cosmetic</span> </li> </ul> <p> This warning seems to be a cosmetic issue only. The want_ variable is set and used in io_op::operator(), and this precedes any other call that may use it (e.g. a copy or move constructor). </p> Ticket chris_kohlhoff Tue, 01 Oct 2013 11:13:53 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8347#comment:2 https://svn.boost.org/trac10/ticket/8347#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed on trunk in <a class="changeset" href="https://svn.boost.org/trac10/changeset/85743" title="Ensure ssl::io_op::want_ member is initialised.">[85743]</a>. Merged to release in <a class="changeset" href="https://svn.boost.org/trac10/changeset/85838" title="Merge asio from trunk. ...">[85838]</a>. </p> Ticket