muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
00f241311b
commit
1fad10b79b
7 changed files with 42 additions and 0 deletions
|
|
@ -1,4 +1,11 @@
|
|||
%module extern_throws
|
||||
|
||||
%{
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
#include <exception>
|
||||
extern int get() throw(std::exception);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue