summaryrefslogtreecommitdiff
path: root/Examples/python
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2006-01-24 21:36:58 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2006-01-24 21:36:58 +0000
commiteeb67079e69d1687a1a0e7a058be4f29ddd474f8 (patch)
tree7603c7f2f7a8eae9e41558b2d695e51220a76f81 /Examples/python
parentf73702d354feda0b696fb4b1e95d2a96db2185d5 (diff)
downloadswig-eeb67079e69d1687a1a0e7a058be4f29ddd474f8.tar.gz
vc++ warning suppression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/python')
-rw-r--r--Examples/python/exception/example.h11
-rw-r--r--Examples/python/exceptshadow/example.h11
2 files changed, 14 insertions, 8 deletions
diff --git a/Examples/python/exception/example.h b/Examples/python/exception/example.h
index 4896059f5..8f9a977b0 100644
--- a/Examples/python/exception/example.h
+++ b/Examples/python/exception/example.h
@@ -16,6 +16,10 @@ public:
char msg[256];
};
+#if defined(_MSC_VER)
+ #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
+#endif
+
class Test {
public:
int simple() throw(int) {
@@ -43,8 +47,7 @@ public:
}
};
+#if defined(_MSC_VER)
+ #pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
+#endif
-
-
-
-
diff --git a/Examples/python/exceptshadow/example.h b/Examples/python/exceptshadow/example.h
index 9facde4bd..ec7107a5e 100644
--- a/Examples/python/exceptshadow/example.h
+++ b/Examples/python/exceptshadow/example.h
@@ -8,6 +8,10 @@ class FullError {
FullError(int m) : maxsize(m) { }
};
+#if defined(_MSC_VER)
+ #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
+#endif
+
template<typename T> class Queue {
int maxsize;
T *items;
@@ -44,8 +48,7 @@ template<typename T> class Queue {
};
+#if defined(_MSC_VER)
+ #pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
+#endif
-
-
-
-