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:
parent
578829d48e
commit
531719cebd
18 changed files with 29 additions and 16 deletions
|
|
@ -13,7 +13,7 @@
|
|||
};
|
||||
|
||||
template <FieldDim Dim>
|
||||
class Facet;
|
||||
struct Facet;
|
||||
|
||||
|
||||
template <FieldDim Dim>
|
||||
|
|
|
|||
|
|
@ -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 (...) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
%{
|
||||
|
||||
|
||||
class A;
|
||||
struct A;
|
||||
struct B
|
||||
{
|
||||
B(int i) : v(i)
|
||||
|
|
|
|||
|
|
@ -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 %{
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
int hello(int);
|
||||
inline int hello(int) { return 0; }
|
||||
|
||||
class B;
|
||||
struct B;
|
||||
|
||||
struct A
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue