Test case warning suppression for visual c++

This commit is contained in:
William S Fulton 2015-08-02 21:38:53 +01:00
parent c6f8aadc64
commit 892aaf577a
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,9 @@
%module array_typedef_memberin %module array_typedef_memberin
#if defined(_MSC_VER)
#pragma warning(disable: 4351) // new behavior: elements of array 'xyz' will be default initialized
#endif
#if defined(SWIGSCILAB) #if defined(SWIGSCILAB)
%rename(ExDetail) ExampleDetail; %rename(ExDetail) ExampleDetail;
#endif #endif

View File

@ -113,6 +113,10 @@ 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 or deleted
#endif
// Single inheritance, base has private destructor // Single inheritance, base has private destructor
class FFF : public F { class FFF : public F {
}; };
@ -123,6 +127,10 @@ class GGG : public A, public F {
class HHH : public F, public A { class HHH : public F, public A {
}; };
#if defined(_MSC_VER)
#pragma warning(default: 4624) // destructor could not be generated because a base class destructor is inaccessible or deleted
#endif
/* A class with a protected destructor */ /* A class with a protected destructor */
class G { class G {
protected: protected: