[pypy-commit] pypy default: _tkinter: "const" some struct members to silence gcc warnings.

amauryfa noreply at buildbot.pypy.org
Sun Jun 14 22:29:58 CEST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r78098:7f1fa7382673
Date: 2015-06-14 22:30 +0200
http://bitbucket.org/pypy/pypy/changeset/7f1fa7382673/

Log:	_tkinter: "const" some struct members to silence gcc warnings.

diff --git a/lib_pypy/_tkinter/tklib_build.py b/lib_pypy/_tkinter/tklib_build.py
--- a/lib_pypy/_tkinter/tklib_build.py
+++ b/lib_pypy/_tkinter/tklib_build.py
@@ -75,13 +75,13 @@
 typedef ...* Tcl_Command;
 
 typedef struct Tcl_ObjType {
-    char *name;
+    const char *name;
     ...;
 } Tcl_ObjType;
 typedef struct Tcl_Obj {
     char *bytes;
     int length;
-    Tcl_ObjType *typePtr;
+    const Tcl_ObjType *typePtr;
     union {                     /* The internal representation: */
         long longValue;         /*   - an long integer value. */
         double doubleValue;     /*   - a double-precision floating value. */


More information about the pypy-commit mailing list