Author: guido.van.rossum
Date: Tue May 15 22:37:11 2007
New Revision: 55352

Modified:
   python/branches/py3k-struni/Objects/bufferobject.c
   python/branches/py3k-struni/Objects/moduleobject.c
Log:
Kill two innocuous compiler warnings.


Modified: python/branches/py3k-struni/Objects/bufferobject.c
==============================================================================
--- python/branches/py3k-struni/Objects/bufferobject.c  (original)
+++ python/branches/py3k-struni/Objects/bufferobject.c  Tue May 15 22:37:11 2007
@@ -433,7 +433,8 @@
 
         if (PyUnicode_Check(other)) {
                /* XXX HACK */
-               if ( (count = (*pb->bf_getcharbuffer)(other, 0, &ptr2)) < 0 )
+               if ( (count = (*pb->bf_getcharbuffer)(other, 0,
+                                                      (char **)&ptr2)) < 0 )
                        return NULL;
        }
        else {

Modified: python/branches/py3k-struni/Objects/moduleobject.c
==============================================================================
--- python/branches/py3k-struni/Objects/moduleobject.c  (original)
+++ python/branches/py3k-struni/Objects/moduleobject.c  Tue May 15 22:37:11 2007
@@ -59,7 +59,6 @@
 {
        PyObject *d;
        PyObject *nameobj;
-       char *s;
        if (!PyModule_Check(m)) {
                PyErr_BadArgument();
                return NULL;
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to