mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Peter Schneider-Kamp <nowonder@nowonder.de>:
Remove some of GCC's warning in -Wstrict-prototypes mode. This closes SourceForge patch #101342.
This commit is contained in:
parent
562f62aa9b
commit
8ce159aef5
4 changed files with 12 additions and 18 deletions
|
@ -788,9 +788,7 @@ static char pop_doc [] =
|
||||||
Return the i-th element and delete it from the array. i defaults to -1.";
|
Return the i-th element and delete it from the array. i defaults to -1.";
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
array_extend(self, args)
|
array_extend(arrayobject *self, PyObject *args)
|
||||||
arrayobject *self;
|
|
||||||
PyObject *args;
|
|
||||||
{
|
{
|
||||||
int size;
|
int size;
|
||||||
PyObject *bb;
|
PyObject *bb;
|
||||||
|
|
|
@ -27,13 +27,13 @@
|
||||||
#else
|
#else
|
||||||
#include <readline/readline.h> /* You may need to add an -I option to Setup */
|
#include <readline/readline.h> /* You may need to add an -I option to Setup */
|
||||||
|
|
||||||
extern int rl_parse_and_bind();
|
extern int rl_parse_and_bind(char *);
|
||||||
extern int rl_read_init_file();
|
extern int rl_read_init_file(char *);
|
||||||
extern int rl_insert_text();
|
extern int rl_insert_text(char *);
|
||||||
extern int rl_bind_key();
|
extern int rl_bind_key(int, Function *);
|
||||||
extern int rl_bind_key_in_map();
|
extern int rl_bind_key_in_map(int, Function *, Keymap);
|
||||||
extern int rl_initialize();
|
extern int rl_initialize(void);
|
||||||
extern int add_history();
|
extern int add_history(char *);
|
||||||
extern Function *rl_event_hook;
|
extern Function *rl_event_hook;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -508,7 +508,7 @@ static PyMethodDef poll_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static pollObject *
|
static pollObject *
|
||||||
newPollObject()
|
newPollObject(void)
|
||||||
{
|
{
|
||||||
pollObject *self;
|
pollObject *self;
|
||||||
self = PyObject_New(pollObject, &poll_Type);
|
self = PyObject_New(pollObject, &poll_Type);
|
||||||
|
|
|
@ -253,14 +253,11 @@ file_close(PyFileObject *f, PyObject *args)
|
||||||
/* a portable fseek() function
|
/* a portable fseek() function
|
||||||
return 0 on success, non-zero on failure (with errno set) */
|
return 0 on success, non-zero on failure (with errno set) */
|
||||||
int
|
int
|
||||||
_portable_fseek(fp, offset, whence)
|
|
||||||
FILE* fp;
|
|
||||||
#if defined(HAVE_LARGEFILE_SUPPORT) && SIZEOF_OFF_T < 8 && SIZEOF_FPOS_T >= 8
|
#if defined(HAVE_LARGEFILE_SUPPORT) && SIZEOF_OFF_T < 8 && SIZEOF_FPOS_T >= 8
|
||||||
fpos_t offset;
|
_portable_fseek(FILE *fp, fpos_t offset, int whence)
|
||||||
#else
|
#else
|
||||||
off_t offset;
|
_portable_fseek(FILE *fp, off_t offset, int whence)
|
||||||
#endif
|
#endif
|
||||||
int whence;
|
|
||||||
{
|
{
|
||||||
#if defined(HAVE_FSEEKO)
|
#if defined(HAVE_FSEEKO)
|
||||||
return fseeko(fp, offset, whence);
|
return fseeko(fp, offset, whence);
|
||||||
|
@ -302,8 +299,7 @@ fpos_t
|
||||||
#else
|
#else
|
||||||
off_t
|
off_t
|
||||||
#endif
|
#endif
|
||||||
_portable_ftell(fp)
|
_portable_ftell(FILE* fp)
|
||||||
FILE* fp;
|
|
||||||
{
|
{
|
||||||
#if defined(HAVE_FTELLO) && defined(HAVE_LARGEFILE_SUPPORT)
|
#if defined(HAVE_FTELLO) && defined(HAVE_LARGEFILE_SUPPORT)
|
||||||
return ftello(fp);
|
return ftello(fp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue