[Scipy-svn] r5378 - trunk/scipy/weave

scipy-svn@scip... scipy-svn@scip...
Thu Jan 8 01:51:16 CST 2009


Author: stefan
Date: 2009-01-08 01:51:00 -0600 (Thu, 08 Jan 2009)
New Revision: 5378

Modified:
   trunk/scipy/weave/inline_tools.py
Log:
Mark raw_globals and raw_locals as unused to prevent compiler warnings.

Modified: trunk/scipy/weave/inline_tools.py
===================================================================
--- trunk/scipy/weave/inline_tools.py	2009-01-08 07:50:30 UTC (rev 5377)
+++ trunk/scipy/weave/inline_tools.py	2009-01-08 07:51:00 UTC (rev 5378)
@@ -81,9 +81,11 @@
 
         try_code =    'try                              \n' \
                       '{                                \n' \
-                      '    PyObject* raw_locals = py_to_raw_dict('       \
+                      '    PyObject* raw_locals __attribute__ ((unused));\n' \
+                      '    raw_locals = py_to_raw_dict('       \
                                              'py__locals,"_locals");\n'  \
-                      '    PyObject* raw_globals = py_to_raw_dict('      \
+                      '    PyObject* raw_globals __attribute__ ((unused));\n' \
+                      '    raw_globals = py_to_raw_dict('      \
                                           'py__globals,"_globals");\n' + \
                       '    /* argument conversion code */     \n' + \
                            decl_code                               + \



More information about the Scipy-svn mailing list