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
{
void extending() { $parentclassname tmp; }
void extending() {
$parentclassname tmp;
(void)tmp;
}
}
%template(ExtendTemplateInt) Space::ExtendTemplate<int>;

View File

@ -41,7 +41,7 @@ public class smart_pointer_const_overload_runme {
Assert(f.getAccess() == MUTABLE_ACCESS);
// Test static method
b.stat();
b.statMethod();
Assert(f.getAccess() == CONST_ACCESS);

View File

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

View File

@ -56,7 +56,7 @@ def test(b, f):
raise RuntimeError
# Test static method
b.stat()
b.statMethod()
if f.access != CONST_ACCESS:
raise RuntimeError

View File

@ -34,7 +34,7 @@ struct Foo {
Foo() : x(0), xp(&x), y(0), yp(&y), access(0) { }
int getx() const { return x; }
void setx(int x_) { x = x_; }
static void stat() {}
static void statMethod() {}
};
%}