Various warning fixes for Visual Studio 2003 C++ compiler

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-09-01 22:24:24 +00:00
commit 531719cebd
18 changed files with 29 additions and 16 deletions

View file

@ -13,7 +13,7 @@
};
template <FieldDim Dim>
class Facet;
struct Facet;
template <FieldDim Dim>

View file

@ -17,9 +17,9 @@ class Test {
SomeClass o;
public:
Test(int x) try : o(x) { }
catch (Error &e) {
catch (Error &) {
}
catch (int y) {
catch (int) {
}
catch (...) {
}

View file

@ -10,7 +10,7 @@
%{
class A;
struct A;
struct B
{
B(int i) : v(i)

View file

@ -31,9 +31,11 @@ short full_of_exceptions(int num) {
%typemap(throws, throws="IllegalAccessException") int {
(void)$1;
jclass excep = jenv->FindClass("java/lang/IllegalAccessException");
if (excep)
if (excep) {
jenv->ThrowNew(excep, "Test exception");
}
return $null;
}
%inline %{

View file

@ -39,7 +39,7 @@
int hello(int);
inline int hello(int) { return 0; }
class B;
struct B;
struct A
{

View file

@ -30,10 +30,10 @@
};
template <class ArgType, class ResType>
class UnaryFunction;
struct UnaryFunction;
template <class ArgType, class ResType>
class ArithUnaryFunction;
struct ArithUnaryFunction;
template <class ArgType, class ResType>
struct UnaryFunction : UnaryFunctionBase

View file

@ -33,10 +33,10 @@ typedef std::complex<double> cmplx;
};
template <class ArgType, class ResType>
class UnaryFunction;
struct UnaryFunction;
template <class ArgType, class ResType>
class ArithUnaryFunction;
struct ArithUnaryFunction;
template <class ArgType, class ResType>
struct UnaryFunction : UnaryFunctionBase

View file

@ -19,10 +19,10 @@ namespace vfncs {
};
template <class ArgType, class ResType>
class UnaryFunction;
struct UnaryFunction;
template <class ArgType, class ResType>
class ArithUnaryFunction;
struct ArithUnaryFunction;
template <class ArgType, class ResType>
struct UnaryFunction : UnaryFunctionBase