[go: up one dir, main page]

Skip to content

Commit

Permalink
fixed gcc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Szabo committed Dec 25, 2019
1 parent 502a681 commit 1b1255f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Modules.dlmodule.2.7.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void *dlsym(void *handle, const char *symbol) {
}
int dlclose(void *handle) {
(void)handle;
return 0;
}

/* StaticPython */
Expand Down Expand Up @@ -283,21 +284,6 @@ static PyMethodDef dl_methods[] = {
{NULL, NULL} /* sentinel */
};

/* From socketmodule.c
* Convenience routine to export an integer value.
*
* Errors are silently ignored, for better or for worse...
*/
static void
insint(PyObject *d, char *name, int value)
{
PyObject *v = PyInt_FromLong((long) value);
if (!v || PyDict_SetItemString(d, name, v))
PyErr_Clear();

Py_XDECREF(v);
}

PyMODINIT_FUNC
initdl(void)
{
Expand Down

0 comments on commit 1b1255f

Please sign in to comment.