Boost C++ Libraries: Ticket #1163: Spurious warning supression needed? https://svn.boost.org/trac10/ticket/1163 <p> I saw <a class="ext-link" href="http://svn.boost.org/trac/boost/ticket/974"><span class="icon">​</span>http://svn.boost.org/trac/boost/ticket/974</a>, and I got a similar error that might warrant a similar change: </p> <p> I generate a Win32 Console project with Visual Studio 2005 (SP1), turn on /CLR, and I include (but don't use) boost/function.hpp or a file that uses that (e.g., boost/thread/thread.hpp): </p> <pre class="wiki">#include "stdafx.h" #pragma warning( push ) //#pragma warning( disable: 4793 ) #include &lt;boost/function.hpp&gt; #pragma warning( pop ) int _tmain() { return 0; } </pre><p> I get this message: </p> <p> C:\svn\static\Boost-1.34.0\boost/function/function_base.hpp(727) : warning C4793: 'vararg' : causes native code generation for function 'bool boost::detail::function::has_empty_target(...)' </p> <blockquote> <p> C:\svn\static\Boost-1.34.0\boost/function/function_base.hpp(724) : see declaration of 'boost::detail::function::has_empty_target' </p> </blockquote> <p> I can get rid of it by uncommenting the pragma, of course, but I thought you might want to do that automatically, as in the aforementioned ticket. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1163 Trac 1.4.3 Douglas Gregor Wed, 29 Aug 2007 18:59:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1163#comment:1 https://svn.boost.org/trac10/ticket/1163#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/39060" title="Disable MSVC warning about native code generation. Fixes #1163">[39060]</a>) Disable MSVC warning about native code generation. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1163" title="#1163: Bugs: Spurious warning supression needed? (closed: fixed)">#1163</a> </p> Ticket