[Boost-bugs] [Boost C++ Libraries] #1163: Spurious warning supression needed?

Subject: [Boost-bugs] [Boost C++ Libraries] #1163: Spurious warning supression needed?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-10 19:14:31


#1163: Spurious warning supression needed?
---------------------------------------------------------------------+------
 Reporter: mlimber | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: function
  Version: release 1.34.0 | Severity: Cosmetic
 Keywords: Visual Studio 2005, CLR, native code generation, vararg |
---------------------------------------------------------------------+------
 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.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1163>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC