[Python-3000-checkins] r55961 - in python/branches/py3k-struni/Modules: _cursesmodule.c _sqlite/cursor.c

guido.van.rossum python-3000-checkins at python.org
Wed Jun 13 18:28:31 CEST 2007


Author: guido.van.rossum
Date: Wed Jun 13 18:28:25 2007
New Revision: 55961

Modified:
   python/branches/py3k-struni/Modules/_cursesmodule.c
   python/branches/py3k-struni/Modules/_sqlite/cursor.c
Log:
Shut up compiler warnings.


Modified: python/branches/py3k-struni/Modules/_cursesmodule.c
==============================================================================
--- python/branches/py3k-struni/Modules/_cursesmodule.c	(original)
+++ python/branches/py3k-struni/Modules/_cursesmodule.c	Wed Jun 13 18:28:25 2007
@@ -1745,7 +1745,9 @@
 static PyObject *
 PyCurses_GetWin(PyCursesWindowObject *self, PyObject *temp)
 {
+#if 0
   WINDOW *win;
+#endif
 
   PyCursesInitialised
 

Modified: python/branches/py3k-struni/Modules/_sqlite/cursor.c
==============================================================================
--- python/branches/py3k-struni/Modules/_sqlite/cursor.c	(original)
+++ python/branches/py3k-struni/Modules/_sqlite/cursor.c	Wed Jun 13 18:28:25 2007
@@ -36,10 +36,10 @@
 
 PyObject* pysqlite_cursor_iternext(pysqlite_Cursor* self);
 
-static pysqlite_StatementKind detect_statement_type(char* statement)
+static pysqlite_StatementKind detect_statement_type(const char* statement)
 {
     char buf[20];
-    char* src;
+    const char* src;
     char* dst;
 
     src = statement;


More information about the Python-3000-checkins mailing list