]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove warning: funcion declaration isn't a prototype
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 16 Mar 2007 14:49:11 +0000 (14:49 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 16 Mar 2007 14:49:11 +0000 (14:49 +0000)
Objects/object.c

index 1b37a8dad3d27ea9dd145c0735e7a9612cbc4ce3..9e254676b4f2bee7bcadc11938d6672f35514991 100644 (file)
@@ -1666,7 +1666,7 @@ merge_list_attr(PyObject* dict, PyObject* obj, const char *attrname)
 
 /* Helper for PyObject_Dir without arguments: returns the local scope. */
 static PyObject *
-_dir_locals()
+_dir_locals(void)
 {
        PyObject *names;
        PyObject *locals = PyEval_GetLocals();
@@ -2209,4 +2209,3 @@ _PyTrash_destroy_chain(void)
 #ifdef __cplusplus
 }
 #endif
-