Warning suppressions in tests

This commit is contained in:
William S Fulton 2014-12-22 20:35:13 +00:00
parent 31df3077b3
commit 5c57a8c877
5 changed files with 8 additions and 5 deletions

View File

@ -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>;

View File

@ -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);

View File

@ -19,7 +19,7 @@
%inline %{ %inline %{
class OuterC { class OuterC {
public: public:
class InnerS; struct InnerS;
class InnerC; class InnerC;
}; };

View File

@ -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

View File

@ -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() {}
}; };
%} %}