Warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
62f5e6cf73
commit
a2da4e699c
2 changed files with 5 additions and 5 deletions
|
|
@ -59,9 +59,9 @@ struct After {
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
struct OverBefore {
|
struct OverBefore {
|
||||||
OverBefore(const char *str, int i = -2, double d = -2.0) : d(d), i(i) { str=0; }
|
OverBefore(const char *str, int ii = -2, double dd = -2.0) : d(dd), i(ii) { str=0; }
|
||||||
static double AddedStaticMethod(const char*, int i = -1, double d = -1) { return i+d; }
|
static double AddedStaticMethod(const char*, int ii = -1, double dd = -1) { return ii+dd; }
|
||||||
double AddedMethod(const char*, int i = -1, double d = -1.0) { return i+d; }
|
double AddedMethod(const char*, int ii = -1, double dd = -1.0) { return ii+dd; }
|
||||||
double d;
|
double d;
|
||||||
int i;
|
int i;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
struct Foo {
|
struct Foo {
|
||||||
int x;
|
int x;
|
||||||
int test(int x) { x = 0; return 1; }
|
int test(int y) { y = 0; return 1; }
|
||||||
int test(double x) { x = 0; return 2; }
|
int test(double y) { y = 0; return 2; }
|
||||||
int test(char *s) { s = 0; return 3; }
|
int test(char *s) { s = 0; return 3; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue