forgotten checkin - warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8574 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
809584928c
commit
e13c82690e
1 changed files with 6 additions and 0 deletions
|
|
@ -39,7 +39,13 @@ short full_of_exceptions(int num) {
|
||||||
return $null;
|
return $null;
|
||||||
}
|
}
|
||||||
%inline %{
|
%inline %{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
void throw_spec_function(int value) throw (int) { throw (int)0; }
|
void throw_spec_function(int value) throw (int) { throw (int)0; }
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue