Some test-suite warning fixes

This commit is contained in:
William S Fulton 2013-04-06 16:19:17 -07:00
commit 65b917dabb
2 changed files with 12 additions and 0 deletions

View file

@ -5,6 +5,12 @@
* if there were also functions throwing 'std::logic_error' and
* '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>

View file

@ -39,6 +39,7 @@
CLEAR_SWIGTYPE_TYPEMAPS;
%typemap(in) SWIGTYPE [ANY] {
$1 = 0;
/* Correct typemap for $symname: $type */
}
%inline %{
@ -48,9 +49,11 @@ CLEAR_SWIGTYPE_TYPEMAPS;
CLEAR_SWIGTYPE_TYPEMAPS;
%typemap(in) const SWIGTYPE [ANY] {
$1 = 0;
/* Correct typemap for $symname: $type */
}
%typemap(in) const volatile SWIGTYPE [ANY] {
$1 = 0;
/* Correct typemap for $symname: $type */
}
%inline %{
@ -61,9 +64,11 @@ CLEAR_SWIGTYPE_TYPEMAPS;
CLEAR_SWIGTYPE_TYPEMAPS;
%typemap(in) volatile SWIGTYPE **const [ANY] {
$1 = 0;
/* Correct typemap for $symname: $type */
}
%typemap(in) volatile SWIGTYPE **const [ANY][ANY] {
$1 = 0;
/* Correct typemap for $symname: $type */
}
%inline %{
@ -72,6 +77,7 @@ CLEAR_SWIGTYPE_TYPEMAPS;
CLEAR_SWIGTYPE_TYPEMAPS;
%typemap(in) SWIGTYPE (*const) (ANY) {
$1 = 0;
/* Correct typemap for $symname: $type */
}
%inline %{