remove more warnings, ICC
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7c51b33a69
commit
22407f3517
9 changed files with 18 additions and 18 deletions
|
|
@ -8,5 +8,5 @@ namespace ArrayExample
|
||||||
public:
|
public:
|
||||||
arr_short8 node_list;
|
arr_short8 node_list;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ public:
|
||||||
ReturnValuesTest() : int3(NULL) {}
|
ReturnValuesTest() : int3(NULL) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
const int* globalRet1() {return &GlobalInt;};
|
const int* globalRet1() {return &GlobalInt;}
|
||||||
int* const globalRet2() {return &GlobalInt;};
|
int* const globalRet2() {return &GlobalInt;}
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
public:
|
public:
|
||||||
Test() { };
|
Test() { }
|
||||||
~Test() { };
|
~Test() { }
|
||||||
char *method() {
|
char *method() {
|
||||||
return (char *) "Test::method";
|
return (char *) "Test::method";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
typedef Test *TestPtr;
|
typedef Test *TestPtr;
|
||||||
void weird(Bad x, ::Bad y) { };
|
void weird(Bad x, ::Bad y) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
char *do_method(example::TestPtr t) {
|
char *do_method(example::TestPtr t) {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ Foo *create_Foo() {
|
||||||
return new Foo();
|
return new Foo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void test1(Foo *f, Integer x) { };
|
void test1(Foo *f, Integer x) { }
|
||||||
|
|
||||||
class Bar : public Foo { };
|
class Bar : public Foo { };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace hello
|
||||||
// This doesn't work
|
// This doesn't work
|
||||||
//
|
//
|
||||||
typedef Hi<hi::hi0> Hi0;
|
typedef Hi<hi::hi0> Hi0;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
namespace oss
|
namespace oss
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,6 @@
|
||||||
|
|
||||||
Foo blah() {
|
Foo blah() {
|
||||||
return Foo();
|
return Foo();
|
||||||
};
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
friend int foo(A*, B*);
|
friend int foo(A*, B*);
|
||||||
};
|
};
|
||||||
|
|
||||||
inline int foo(A*, B*) { return 0; };
|
inline int foo(A*, B*) { return 0; }
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
// since they are not C/C++/CPP standard.
|
// since they are not C/C++/CPP standard.
|
||||||
//
|
//
|
||||||
%extend Hello {
|
%extend Hello {
|
||||||
int hi(int) { return 0; };
|
int hi(int) { return 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
%rename(chao) hi(int);
|
%rename(chao) hi(int);
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
typedef int Int;
|
typedef int Int;
|
||||||
typedef double Int;
|
typedef double Int;
|
||||||
friend short hello(int);
|
friend short hello(int);
|
||||||
int hi(int) { return 0; };
|
int hi(int) { return 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Namespace {
|
||||||
typedef const Error* ErrorPtr;
|
typedef const Error* ErrorPtr;
|
||||||
typedef int IntArray[10];
|
typedef int IntArray[10];
|
||||||
enum EnumTest { enum1, enum2 };
|
enum EnumTest { enum1, enum2 };
|
||||||
};
|
}
|
||||||
class Foo {
|
class Foo {
|
||||||
public:
|
public:
|
||||||
void test_int() throw(int) {
|
void test_int() throw(int) {
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
void globalfunc(void) {
|
void globalfunc(void) {
|
||||||
};
|
}
|
||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
public:
|
public:
|
||||||
Foo() { };
|
Foo() { }
|
||||||
void memberfunc(void) { };
|
void memberfunc(void) { }
|
||||||
static void staticmemberfunc(void) { };
|
static void staticmemberfunc(void) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue