Revision: 4891
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4891&view=rev
Author:   mdboom
Date:     2008-01-23 11:12:41 -0800 (Wed, 23 Jan 2008)

Log Message:
-----------
Fix warnings on gcc 4.2.1

Modified Paths:
--------------
    trunk/matplotlib/src/_backend_agg.cpp
    trunk/matplotlib/src/_image.cpp

Modified: trunk/matplotlib/src/_backend_agg.cpp
===================================================================
--- trunk/matplotlib/src/_backend_agg.cpp       2008-01-23 18:27:05 UTC (rev 
4890)
+++ trunk/matplotlib/src/_backend_agg.cpp       2008-01-23 19:12:41 UTC (rev 
4891)
@@ -1300,7 +1300,7 @@
   PyObject* write_method = PyObject_GetAttrString(py_file_obj, "write");
   PyObject* result = NULL;
   if (write_method)
-    result = PyObject_CallFunction(write_method, "s#", data, length);
+    result = PyObject_CallFunction(write_method, (char *)"s#", data, length);
   Py_XDECREF(write_method);
   Py_XDECREF(result);
 }
@@ -1310,7 +1310,7 @@
   PyObject* flush_method = PyObject_GetAttrString(py_file_obj, "flush");
   PyObject* result = NULL;
   if (flush_method)
-    result = PyObject_CallFunction(flush_method, "");
+    result = PyObject_CallFunction(flush_method, (char *)"");
   Py_XDECREF(flush_method);
   Py_XDECREF(result);
 }

Modified: trunk/matplotlib/src/_image.cpp
===================================================================
--- trunk/matplotlib/src/_image.cpp     2008-01-23 18:27:05 UTC (rev 4890)
+++ trunk/matplotlib/src/_image.cpp     2008-01-23 19:12:41 UTC (rev 4891)
@@ -580,7 +580,7 @@
   PyObject* write_method = PyObject_GetAttrString(py_file_obj, "write");
   PyObject* result = NULL;
   if (write_method)
-    result = PyObject_CallFunction(write_method, "s#", data, length);
+    result = PyObject_CallFunction(write_method, (char *)"s#", data, length);
   Py_XDECREF(write_method);
   Py_XDECREF(result);
 }
@@ -590,7 +590,7 @@
   PyObject* flush_method = PyObject_GetAttrString(py_file_obj, "flush");
   PyObject* result = NULL;
   if (flush_method)
-    result = PyObject_CallFunction(flush_method, "");
+    result = PyObject_CallFunction(flush_method, (char *)"");
   Py_XDECREF(flush_method);
   Py_XDECREF(result);
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to