From: Serhiy Storchaka Date: Wed, 28 Jun 2017 06:55:22 +0000 (+0300) Subject: Fix compiler warnings on Windows introduced in bpo-13617. (#2464) X-Git-Tag: v3.7.0a1~501 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccdc09ed1ebea7d7c6b41548132aa08bd797bfe8;p=thirdparty%2FPython%2Fcpython.git Fix compiler warnings on Windows introduced in bpo-13617. (#2464) --- diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index 6990a76d51ec..be757ef6f852 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -1249,7 +1249,7 @@ The handle may be used to locate exported functions in this\n\ module.\n"; static PyObject *load_library(PyObject *self, PyObject *args) { - WCHAR *name; + const WCHAR *name; PyObject *nameobj; PyObject *ignored; HMODULE hMod; diff --git a/PC/_msi.c b/PC/_msi.c index a901f98a781d..9c3f9f6e18a3 100644 --- a/PC/_msi.c +++ b/PC/_msi.c @@ -594,7 +594,7 @@ summary_setproperty(msiobj* si, PyObject *args) return NULL; if (PyUnicode_Check(data)) { - WCHAR *value = _PyUnicode_AsUnicode(data); + const WCHAR *value = _PyUnicode_AsUnicode(data); if (value == NULL) { return NULL; }