mirror of https://github.com/swig/swig
Test case warning suppression for visual c++
This commit is contained in:
parent
c6f8aadc64
commit
892aaf577a
|
@ -1,5 +1,9 @@
|
|||
%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)
|
||||
%rename(ExDetail) ExampleDetail;
|
||||
#endif
|
||||
|
|
|
@ -113,6 +113,10 @@ public:
|
|||
|
||||
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
|
||||
class FFF : public F {
|
||||
};
|
||||
|
@ -123,6 +127,10 @@ class GGG : public A, public F {
|
|||
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 */
|
||||
class G {
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue