Boost C++ Libraries: Ticket #10092: deque.hpp: warning C4701: potentially uninitialized local variable 'cur' used https://svn.boost.org/trac10/ticket/10092 <p> Under VS2012: </p> <p> dependencies\boost\boost\container\deque.hpp(454): warning C4701: potentially uninitialized local variable 'cur' used dependencies\boost\boost\container\deque.hpp(454): warning C4703: dependencies\boost\boost\container\deque.hpp(1907): warning C4701: potentially uninitialized local variable 'i' used </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10092 Trac 1.4.3 Ion Gaztañaga Fri, 13 Jun 2014 07:31:25 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10092#comment:1 https://svn.boost.org/trac10/ticket/10092#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">fixed</span> </li> </ul> <p> This seems fixed in current develop and master branches. Thanks for the report. </p> Ticket mark.incley@… Mon, 05 Jan 2015 15:59:20 GMT status, version changed; resolution deleted https://svn.boost.org/trac10/ticket/10092#comment:2 https://svn.boost.org/trac10/ticket/10092#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost 1.54.0</span> → <span class="trac-field-new">Boost 1.57.0</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> Hi, </p> <p> I'm still seeing this occur with deques in Boost 1.57 under Visual Studio 2012: 2&gt;c:\thirdpartysdk\boost_1_57_0\boost\container\deque.hpp(401): error C4703: potentially uninitialized local pointer variable 'cur' used </p> <p> This is particularly pesky because Visual Studio 2012 treats this as an error when built with the /sdl compiler option. </p> <p> Thanks Mark. </p> Ticket Ion Gaztañaga Sat, 17 Jan 2015 16:43:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10092#comment:3 https://svn.boost.org/trac10/ticket/10092#comment:3 <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> I'm still not seeing the warning in the develop branch when compiling with MSVC12, I, but I've committed a change initializing variables before BOOST_TRY: </p> <p> [develop 37db43b] Try to fix MSVC12 warnings of uninitialized variables when using no exception macros. </p> <p> Let me know if this fixes the warning. </p> Ticket anonymous Tue, 17 Mar 2015 10:09:03 GMT <link>https://svn.boost.org/trac10/ticket/10092#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10092#comment:4</guid> <description> <p> Hi, </p> <p> I can confirm the warning has now gone with Boost 1.58 Beta 1. </p> <p> Thanks for the fix. Mark. </p> </description> <category>Ticket</category> </item> </channel> </rss>