From 5c57a8c877f88c9388b68067d665c63546244ba0 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 22 Dec 2014 20:35:13 +0000 Subject: [PATCH] Warning suppressions in tests --- Examples/test-suite/extend_special_variables.i | 5 ++++- .../test-suite/java/smart_pointer_const_overload_runme.java | 2 +- Examples/test-suite/nested_template_base.i | 2 +- .../test-suite/python/smart_pointer_const_overload_runme.py | 2 +- Examples/test-suite/smart_pointer_const_overload.i | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Examples/test-suite/extend_special_variables.i b/Examples/test-suite/extend_special_variables.i index 9a453597a..1f218a8b9 100644 --- a/Examples/test-suite/extend_special_variables.i +++ b/Examples/test-suite/extend_special_variables.i @@ -28,7 +28,10 @@ namespace Space { %extend Space::ExtendTemplate { - void extending() { $parentclassname tmp; } + void extending() { + $parentclassname tmp; + (void)tmp; + } } %template(ExtendTemplateInt) Space::ExtendTemplate; diff --git a/Examples/test-suite/java/smart_pointer_const_overload_runme.java b/Examples/test-suite/java/smart_pointer_const_overload_runme.java index bb4ae2c8f..9c10dedb2 100644 --- a/Examples/test-suite/java/smart_pointer_const_overload_runme.java +++ b/Examples/test-suite/java/smart_pointer_const_overload_runme.java @@ -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); diff --git a/Examples/test-suite/nested_template_base.i b/Examples/test-suite/nested_template_base.i index 65cc715fa..0b0272224 100644 --- a/Examples/test-suite/nested_template_base.i +++ b/Examples/test-suite/nested_template_base.i @@ -19,7 +19,7 @@ %inline %{ class OuterC { public: - class InnerS; + struct InnerS; class InnerC; }; diff --git a/Examples/test-suite/python/smart_pointer_const_overload_runme.py b/Examples/test-suite/python/smart_pointer_const_overload_runme.py index f1be315a5..098e5b4c3 100644 --- a/Examples/test-suite/python/smart_pointer_const_overload_runme.py +++ b/Examples/test-suite/python/smart_pointer_const_overload_runme.py @@ -56,7 +56,7 @@ def test(b, f): raise RuntimeError # Test static method - b.stat() + b.statMethod() if f.access != CONST_ACCESS: raise RuntimeError diff --git a/Examples/test-suite/smart_pointer_const_overload.i b/Examples/test-suite/smart_pointer_const_overload.i index e3b000b52..75a137b73 100644 --- a/Examples/test-suite/smart_pointer_const_overload.i +++ b/Examples/test-suite/smart_pointer_const_overload.i @@ -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() {} }; %}