summaryrefslogtreecommitdiff
path: root/Examples/test-suite/li_std_except_as_class.i
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-04-06 16:19:17 -0700
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-04-06 16:19:17 -0700
commit65b917dabb5d0037318da93b78ce028dbb113f07 (patch)
tree6c134c9cae8170a10e2b949a036d10e8938dbc8f /Examples/test-suite/li_std_except_as_class.i
parentbb3fe8c906997d39570ab1c7bbde78a5236b229f (diff)
downloadswig-65b917dabb5d0037318da93b78ce028dbb113f07.tar.gz
Some test-suite warning fixes
Diffstat (limited to 'Examples/test-suite/li_std_except_as_class.i')
-rw-r--r--Examples/test-suite/li_std_except_as_class.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/test-suite/li_std_except_as_class.i b/Examples/test-suite/li_std_except_as_class.i
index 00de76eac..0400c9a82 100644
--- a/Examples/test-suite/li_std_except_as_class.i
+++ b/Examples/test-suite/li_std_except_as_class.i
@@ -6,6 +6,12 @@
* 'std::exception' then the bug would not be fully replicated */
%{
+#if defined(_MSC_VER)
+ #pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
+#endif
+%}
+
+%{
#include <exception>
#include <stdexcept>
void test_domain_error() throw(std::domain_error)