Boost C++ Libraries: Ticket #4391: uninitialized data warning https://svn.boost.org/trac10/ticket/4391 <p> This warning is issued by QNX compiler: </p> <p> boost/property_tree/stream_translator.hpp:189: warning: 'e' may be used uninitialized in this function </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4391 Trac 1.4.3 Sebastian Redl Fri, 22 Oct 2010 12:38:47 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4391#comment:1 https://svn.boost.org/trac10/ticket/4391#comment:1 <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">wontfix</span> </li> </ul> <p> The warning is broken, and the nature of this generic code doesn't give me much leeway in fixing it in C++03. I could use value_initialized, but that seems like massive overkill just to fix a broken warning in a rather obscure compiler. </p> Ticket Larry Lewis <lewislp@…> Tue, 10 May 2011 17:36:44 GMT <link>https://svn.boost.org/trac10/ticket/4391#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4391#comment:2</guid> <description> <p> Same issue with g++ 4.4.5. </p> <ul><li>Flags: -O2 -Wall -Werror -fno-strict-aliasing </li><li>g++ (<a class="missing wiki">Ubuntu/Linaro</a> 4.4.4-14ubuntu5) 4.4.5 </li><li>Linux llewis 2.6.35-28-generic <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/50" title="#50: Tasks: Abstract targets (closed: Fixed)">#50</a>-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux </li></ul><p> Does not happen if -O0. </p> </description> <category>Ticket</category> </item> <item> <author>Larry Lewis <lewislp@…></author> <pubDate>Tue, 10 May 2011 17:38:08 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/4391#comment:3 https://svn.boost.org/trac10/ticket/4391#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">wontfix</span> </li> </ul> Ticket Larry Lewis <lewislp@…> Tue, 10 May 2011 17:39:35 GMT <link>https://svn.boost.org/trac10/ticket/4391#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4391#comment:4</guid> <description> <p> Forgot to mention I'm using Boost 1.46.1. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Sat, 24 Nov 2012 14:47:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4391#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4391#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81507" title="Don't use an uninitialized variable if trying to read a numeric char ...">[81507]</a>) Don't use an uninitialized variable if trying to read a numeric char from a property and the value is out of bounds for the target type. See bug 4391. This is the only place where the warning that some compilers give makes sense; if it still occurs after this change, it's just broken. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Mon, 10 Feb 2014 14:54:28 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4391#comment:6 https://svn.boost.org/trac10/ticket/4391#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Finally merged to master in e6958d6. </p> Ticket