remove vc++ noise

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-01-21 00:02:05 +00:00
commit cf9272fbae
5 changed files with 31 additions and 0 deletions

View file

@ -96,8 +96,14 @@ public:
void bar(F *) { } void bar(F *) { }
#if defined(_MSC_VER)
#pragma warning(disable: 4624) // : destructor could not be generated because a base class destructor is inaccessible
#endif
class FFF : public F { class FFF : public F {
}; };
#if defined(_MSC_VER)
#pragma warning(default: 4624) // : destructor could not be generated because a base class destructor is inaccessible
#endif
/* A class with a protected destructor */ /* A class with a protected destructor */
class G { class G {

View file

@ -64,12 +64,20 @@ std::wstring& test_reference_out() {
return x; return x;
} }
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
void test_throw() throw(std::wstring){ void test_throw() throw(std::wstring){
static std::wstring x = L"x"; static std::wstring x = L"x";
throw x; throw x;
} }
#if defined(_MSC_VER)
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
%} %}

View file

@ -70,12 +70,20 @@ std::wstring& test_reference_out() {
return x; return x;
} }
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
void test_throw() throw(std::wstring){ void test_throw() throw(std::wstring){
static std::wstring x = L"x"; static std::wstring x = L"x";
throw x; throw x;
} }
#if defined(_MSC_VER)
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
%} %}

View file

@ -1,5 +1,8 @@
%module std_containers %module std_containers
%{
#include <set>
%}
%include std_vector.i %include std_vector.i
%include std_string.i %include std_string.i
%include std_deque.i %include std_deque.i

View file

@ -4,6 +4,12 @@
%csmethodmodifiers x "public new" %csmethodmodifiers x "public new"
#endif #endif
%{
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
%}
%inline %{ %inline %{
class Foo { class Foo {
public: public: