Boost C++ Libraries: Ticket #6185: _SCL_SECURE_NO_WARNINGS macro redefinition in Boost.Move https://svn.boost.org/trac10/ticket/6185 <p> In the "boost/move/move.hpp" (line 28) header file _SCL_SECURE_NO_WARNINGS macro is defined without checking whether previous definition exists: </p> <pre class="wiki">#ifdef BOOST_MSVC #ifndef _CRT_SECURE_NO_DEPRECATE #define BOOST_INTERPROCESS_CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE #define _SCL_SECURE_NO_WARNINGS #endif #pragma warning (push) #pragma warning(disable:4996) #endif </pre><p> Correct code: </p> <pre class="wiki">#ifdef BOOST_MSVC #ifndef _CRT_SECURE_NO_DEPRECATE #define BOOST_INTERPROCESS_CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE #endif #ifndef _SCL_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #endif #pragma warning (push) #pragma warning(disable:4996) #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6185 Trac 1.4.3 Olaf van der Spek <olafvdspek@…> Mon, 05 Dec 2011 00:27:57 GMT <link>https://svn.boost.org/trac10/ticket/6185#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6185#comment:1</guid> <description> <p> IMO the severity should be a bit higher. This produces lots of warnings. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 05 Dec 2011 01:47:41 GMT</pubDate> <title>severity changed https://svn.boost.org/trac10/ticket/6185#comment:2 https://svn.boost.org/trac10/ticket/6185#comment:2 <ul> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Regression</span> </li> </ul> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/6185#comment:1" title="Comment 1">Olaf van der Spek &lt;olafvdspek@…&gt;</a>: </p> <blockquote class="citation"> <p> IMO the severity should be a bit higher. This produces lots of warnings. </p> </blockquote> Ticket Ion Gaztañaga Fri, 23 Dec 2011 11:51:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6185#comment:3 https://svn.boost.org/trac10/ticket/6185#comment:3 <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 in trunk </p> Ticket