Opened 15 years ago
Closed 15 years ago
#1163 closed Bugs (fixed)
Spurious warning supression needed?
| Reported by: | mlimber | Owned by: | Douglas Gregor | 
|---|---|---|---|
| Milestone: | To Be Determined | Component: | function | 
| Version: | Boost 1.34.0 | Severity: | Cosmetic | 
| Keywords: | Visual Studio 2005, CLR, native code generation, vararg | Cc: | 
Description
I saw http://svn.boost.org/trac/boost/ticket/974, and I got a similar error that might warrant a similar change:
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):
#include "stdafx.h"
#pragma warning( push )
//#pragma warning( disable: 4793 )
#include <boost/function.hpp>
#pragma warning( pop )
int _tmain()
{
  return 0;
}
I get this message:
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(...)'
C:\svn\static\Boost-1.34.0\boost/function/function_base.hpp(724) : see declaration of 'boost::detail::function::has_empty_target'
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.


(In [39060]) Disable MSVC warning about native code generation. Fixes #1163