From 72e1b0fcd609307936a1856e6168c55984260b05 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Mon, 4 Jul 2016 15:40:56 -0700 Subject: [PATCH] fix warnings (#207) --- src/raylib.cc | 8 ++++++-- thirdparty/numbuf | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/raylib.cc b/src/raylib.cc index 49f99472a..0a185064a 100644 --- a/src/raylib.cc +++ b/src/raylib.cc @@ -65,8 +65,11 @@ static int PyObjRef_compare(PyObject* a, PyObject* b) { return 0; } +char RAY_VAL_LITERAL[] = "val"; +char RAY_OBJECT_REFERENCE_LITERAL[] = "object reference"; + static PyMemberDef PyObjRef_members[] = { - {"val", T_INT, offsetof(PyObjRef, val), 0, "object reference"}, + {RAY_VAL_LITERAL, T_INT, offsetof(PyObjRef, val), 0, RAY_OBJECT_REFERENCE_LITERAL}, {NULL} }; @@ -908,7 +911,8 @@ PyMODINIT_FUNC initlibraylib(void) { m = Py_InitModule3("libraylib", RayLibMethods, "Python C Extension for Ray"); Py_INCREF(&PyObjRefType); PyModule_AddObject(m, "ObjRef", (PyObject *)&PyObjRefType); - RayError = PyErr_NewException("ray.error", NULL, NULL); + char ray_error[] = "ray.error"; + RayError = PyErr_NewException(ray_error, NULL, NULL); Py_INCREF(RayError); PyModule_AddObject(m, "error", RayError); import_array(); diff --git a/thirdparty/numbuf b/thirdparty/numbuf index 508698698..ba059cde2 160000 --- a/thirdparty/numbuf +++ b/thirdparty/numbuf @@ -1 +1 @@ -Subproject commit 508698698217b956286ff696fbdde2604c00c101 +Subproject commit ba059cde272102545acfe0f1ff13df36dc51a4af