[Scipy-svn] r5384 - trunk/scipy/weave/tests

scipy-svn@scip... scipy-svn@scip...
Thu Jan 8 02:12:15 CST 2009


Author: stefan
Date: 2009-01-08 02:12:06 -0600 (Thu, 08 Jan 2009)
New Revision: 5384

Modified:
   trunk/scipy/weave/tests/test_scxx_object.py
Log:
Mark more variables as unused in weave test suite.

Modified: trunk/scipy/weave/tests/test_scxx_object.py
===================================================================
--- trunk/scipy/weave/tests/test_scxx_object.py	2009-01-08 08:11:29 UTC (rev 5383)
+++ trunk/scipy/weave/tests/test_scxx_object.py	2009-01-08 08:12:06 UTC (rev 5384)
@@ -115,36 +115,36 @@
     def test_int_cast(self):
         code = """
                py::object val = 1;
-               int raw_val = val;
+               int raw_val __attribute__ ((unused)) = val;
                """
         inline_tools.inline(code)
     @dec.slow
     def test_double_cast(self):
         code = """
                py::object val = 1.0;
-               double raw_val = val;
+               double raw_val __attribute__ ((unused)) = val;
                """
         inline_tools.inline(code)
     @dec.slow
     def test_float_cast(self):
         code = """
                py::object val = 1.0;
-               float raw_val = val;
+               float raw_val __attribute__ ((unused)) = val;
                """
         inline_tools.inline(code)
     @dec.slow
     def test_complex_cast(self):
         code = """
-               std::complex<double> num = std::complex<double>(1.0,1.0);
+               std::complex<double> num = std::complex<double>(1.0, 1.0);
                py::object val = num;
-               std::complex<double> raw_val = val;
+               std::complex<double> raw_val __attribute__ ((unused)) = val;
                """
         inline_tools.inline(code)
     @dec.slow
     def test_string_cast(self):
         code = """
                py::object val = "hello";
-               std::string raw_val = val;
+               std::string raw_val __attribute__ ((unused)) = val;
                """
         inline_tools.inline(code)
 



More information about the Scipy-svn mailing list