mirror of https://github.com/swig/swig
Warning suppressions in tests
This commit is contained in:
parent
31df3077b3
commit
5c57a8c877
|
@ -28,7 +28,10 @@ namespace Space {
|
||||||
|
|
||||||
%extend Space::ExtendTemplate
|
%extend Space::ExtendTemplate
|
||||||
{
|
{
|
||||||
void extending() { $parentclassname tmp; }
|
void extending() {
|
||||||
|
$parentclassname tmp;
|
||||||
|
(void)tmp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%template(ExtendTemplateInt) Space::ExtendTemplate<int>;
|
%template(ExtendTemplateInt) Space::ExtendTemplate<int>;
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class smart_pointer_const_overload_runme {
|
||||||
Assert(f.getAccess() == MUTABLE_ACCESS);
|
Assert(f.getAccess() == MUTABLE_ACCESS);
|
||||||
|
|
||||||
// Test static method
|
// Test static method
|
||||||
b.stat();
|
b.statMethod();
|
||||||
|
|
||||||
Assert(f.getAccess() == CONST_ACCESS);
|
Assert(f.getAccess() == CONST_ACCESS);
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
%inline %{
|
%inline %{
|
||||||
class OuterC {
|
class OuterC {
|
||||||
public:
|
public:
|
||||||
class InnerS;
|
struct InnerS;
|
||||||
class InnerC;
|
class InnerC;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ def test(b, f):
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
||||||
# Test static method
|
# Test static method
|
||||||
b.stat()
|
b.statMethod()
|
||||||
|
|
||||||
if f.access != CONST_ACCESS:
|
if f.access != CONST_ACCESS:
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|
|
@ -34,7 +34,7 @@ struct Foo {
|
||||||
Foo() : x(0), xp(&x), y(0), yp(&y), access(0) { }
|
Foo() : x(0), xp(&x), y(0), yp(&y), access(0) { }
|
||||||
int getx() const { return x; }
|
int getx() const { return x; }
|
||||||
void setx(int x_) { x = x_; }
|
void setx(int x_) { x = x_; }
|
||||||
static void stat() {}
|
static void statMethod() {}
|
||||||
};
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue