From 53e7fd77a704df337bad3e9fae2c7f70430e1be2 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sun, 23 Jul 2000 00:02:15 +0000 Subject: [PATCH] Fix prototypes generated by makesetup, so they include '(void)' rather than empty argumentlists. --- Modules/config.c.in | 4 ++-- Modules/makesetup | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/config.c.in b/Modules/config.c.in index 106b084978d..da7cabb3537 100644 --- a/Modules/config.c.in +++ b/Modules/config.c.in @@ -20,8 +20,8 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. /* -- ADDMODULE MARKER 1 -- */ -extern void PyMarshal_Init(); -extern void initimp(); +extern void PyMarshal_Init(void); +extern void initimp(void); struct _inittab _PyImport_Inittab[] = { diff --git a/Modules/makesetup b/Modules/makesetup index 3da53234bff..c0c2712eb6b 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -23,7 +23,7 @@ # Copying config.c.in to config.c: # - insert an identifying comment at the start # - for each mentioned in Setup before *noconfig*: -# + insert 'extern void init();' before MARKER 1 +# + insert 'extern void init(void);' before MARKER 1 # + insert '{"", initmodule},' before MARKER 2 # # Copying Makefile.pre to Makefile: @@ -234,7 +234,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | INITBITS= for mod in $MODS do - EXTDECLS="${EXTDECLS}extern void init$mod();$NL" + EXTDECLS="${EXTDECLS}extern void init$mod(void);$NL" INITBITS="${INITBITS} {\"$mod\", init$mod},$NL" done