This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
This patch removes a large number of warnings from the elf directory about missing prototypes. Ok to commit? 2000-12-17 Andreas Jaeger <aj@suse.de> * elf/vismain.c: Move prototypes for functions in vismod*.c to vismod.h. * elf/vismod.h: New file. * elf/Makefile (distribute): Add vismod.h. * elf/vismod1.c: Include vismod.h. * elf/vismod2.c: Likewise. * elf/vismod3.c: Likewise. * elf/constload3.c: Add prototype declarations to shut up gcc. * elf/failobj.c: Likewise. * elf/nodelmod3.c: Likewise. * elf/filtmod1.c: Likewise. * elf/filtmod2.c: Likewise. * elf/reldepmod1.c: Likewise. * elf/reldepmod2.c: Likewise. * elf/reldepmod3.c: Likewise. * elf/reldepmod4.c: Likewise. * elf/unload2dep.c: Likewise. * elf/unload2mod.c: Likewise. * elf/ltglobmod1.c: Likewise. * elf/pathoptobj.c: Likewise. ============================================================ Index: elf/vismain.c --- elf/vismain.c 2000/05/27 16:51:26 1.2 +++ elf/vismain.c 2000/12/17 15:23:12 @@ -20,6 +20,8 @@ #include <stdlib.h> #include <string.h> +#include "vismod.h" + /* Prototype for our test function. */ extern int do_test (void); @@ -28,31 +30,6 @@ /* This defines the `main' function and some more. */ #include <test-skeleton.c> -/* Prototypes for the functions in the DSOs. */ -extern int calllocal1 (void); -extern int (*getlocal1 (void)) (void); -extern int callinmod1 (void); -extern int (*getinmod1 (void)) (void); -extern int callitcpt1 (void); -extern int (*getitcpt1 (void)) (void); -extern const char *getvarlocal1 (void); -extern const char *getvarinmod1 (void); -extern const char *getvaritcpt1 (void); -extern int calllocal2 (void); -extern int (*getlocal2 (void)) (void); -extern int callinmod2 (void); -extern int (*getinmod2 (void)) (void); -extern int callitcpt2 (void); -extern int (*getitcpt2 (void)) (void); -extern const char *getvarlocal2 (void); -extern const char *getvarinmod2 (void); -extern const char *getvaritcpt2 (void); -extern int callitcpt3 (void); -extern int (*getitcpt3 (void)) (void); -extern const char *getvaritcpt3 (void); - -extern int protinmod (void); -extern int protitcpt (void); /* Prototypes for local functions. */ extern int protlocal (void); ============================================================ Index: elf/Makefile --- elf/Makefile 2000/12/15 16:02:10 1.188 +++ elf/Makefile 2000/12/17 15:23:13 @@ -56,7 +56,7 @@ nextmod1.c nextmod2.c pathoptobj.c tst-pathopt.sh \ neededobj1.c neededobj2.c neededobj3.c neededobj4.c \ unload2mod.c unload2dep.c ltglobmod1.c ltglobmod2.c \ - testobj.h + testobj.h vismod.h include ../Makeconfig ============================================================ Index: elf/vismod1.c --- elf/vismod1.c 2000/05/23 18:12:26 1.1 +++ elf/vismod1.c 2000/12/17 15:23:13 @@ -16,6 +16,8 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "vismod.h" + int protlocal (void) { ============================================================ Index: elf/vismod2.c --- elf/vismod2.c 2000/06/21 10:38:24 1.2 +++ elf/vismod2.c 2000/12/17 15:23:13 @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <stdlib.h> +#include "vismod.h" int protlocal (void) ============================================================ Index: elf/vismod3.c --- elf/vismod3.c 2000/05/23 18:12:26 1.1 +++ elf/vismod3.c 2000/12/17 15:23:13 @@ -16,6 +16,8 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "vismod.h" + int protitcpt (void) { ============================================================ Index: elf/constload3.c --- elf/constload3.c 2000/03/17 02:17:03 1.1 +++ elf/constload3.c 2000/12/17 15:23:13 @@ -1,4 +1,5 @@ extern int baz (void); +extern int bar (void); int bar (void) ============================================================ Index: elf/failobj.c --- elf/failobj.c 1999/01/25 10:59:27 1.2 +++ elf/failobj.c 2000/12/17 15:23:13 @@ -1,6 +1,8 @@ /* This function is supposed to not exist. */ extern int xyzzy (int); +extern int foo (int); + int foo (int a) { ============================================================ Index: elf/nodelmod3.c --- elf/nodelmod3.c 2000/07/21 04:36:29 1.1 +++ elf/nodelmod3.c 2000/12/17 15:23:13 @@ -1,4 +1,5 @@ extern int var_in_mod4; +extern int *addr (void); int * addr (void) ============================================================ Index: elf/filtmod1.c --- elf/filtmod1.c 2000/07/21 06:57:29 1.1 +++ elf/filtmod1.c 2000/12/17 15:23:13 @@ -1,3 +1,5 @@ +extern const char *foo (void); + const char * foo (void) { ============================================================ Index: elf/filtmod2.c --- elf/filtmod2.c 2000/07/21 06:57:29 1.1 +++ elf/filtmod2.c 2000/12/17 15:23:13 @@ -1,3 +1,5 @@ +extern const char *foo (void); + const char * foo (void) { ============================================================ Index: elf/reldepmod1.c --- elf/reldepmod1.c 2000/08/26 23:38:32 1.1 +++ elf/reldepmod1.c 2000/12/17 15:23:13 @@ -1,4 +1,7 @@ +extern int foo (void); + int some_var; + int foo (void) ============================================================ Index: elf/reldepmod2.c --- elf/reldepmod2.c 2000/08/26 23:38:32 1.1 +++ elf/reldepmod2.c 2000/12/17 15:23:13 @@ -1,4 +1,5 @@ extern int foo (void); +extern int call_me (void); int call_me (void) ============================================================ Index: elf/reldepmod3.c --- elf/reldepmod3.c 2000/08/27 01:44:13 1.2 +++ elf/reldepmod3.c 2000/12/17 15:23:13 @@ -2,6 +2,8 @@ #include <stdio.h> #include <stdlib.h> +extern int call_me (void); + int call_me (void) { ============================================================ Index: elf/reldepmod4.c --- elf/reldepmod4.c 2000/08/27 01:44:04 1.2 +++ elf/reldepmod4.c 2000/12/17 15:23:13 @@ -2,6 +2,8 @@ #include <stdio.h> #include <stdlib.h> +extern int call_me (void); + int call_me (void) { ============================================================ Index: elf/unload2dep.c --- elf/unload2dep.c 2000/10/21 02:05:33 1.1 +++ elf/unload2dep.c 2000/12/17 15:23:13 @@ -1,3 +1,5 @@ +extern void foo (void); + void foo (void) { ============================================================ Index: elf/unload2mod.c --- elf/unload2mod.c 2000/10/21 02:05:33 1.1 +++ elf/unload2mod.c 2000/12/17 15:23:13 @@ -1,4 +1,5 @@ extern void foo (void); +extern void bar (void); void bar (void) ============================================================ Index: elf/ltglobmod1.c --- elf/ltglobmod1.c 2000/10/21 07:13:48 1.1 +++ elf/ltglobmod1.c 2000/12/17 15:23:13 @@ -1,3 +1,5 @@ +extern int bar (void); + int bar (void) { ============================================================ Index: elf/pathoptobj.c --- elf/pathoptobj.c 2000/10/30 00:10:32 1.1 +++ elf/pathoptobj.c 2000/12/17 15:23:13 @@ -1,3 +1,6 @@ +extern int in_renamed (int); + + int in_renamed (int a) { ============================================================ Index: elf/vismod.h --- elf/vismod.h created +++ elf/vismod.h Sun Dec 17 16:22:24 2000 1.1 @@ -0,0 +1,27 @@ +/* Prototypes for the functions in the DSOs. */ +extern int calllocal1 (void); +extern int (*getlocal1 (void)) (void); +extern int callinmod1 (void); +extern int (*getinmod1 (void)) (void); +extern int callitcpt1 (void); +extern int (*getitcpt1 (void)) (void); +extern const char *getvarlocal1 (void); +extern const char *getvarinmod1 (void); +extern const char *getvaritcpt1 (void); +extern int calllocal2 (void); +extern int (*getlocal2 (void)) (void); +extern int callinmod2 (void); +extern int (*getinmod2 (void)) (void); +extern int callitcpt2 (void); +extern int (*getitcpt2 (void)) (void); +extern const char *getvarlocal2 (void); +extern const char *getvarinmod2 (void); +extern const char *getvaritcpt2 (void); +extern int callitcpt3 (void); +extern int (*getitcpt3 (void)) (void); +extern const char *getvaritcpt3 (void); + +extern int protinmod (void); +extern int protitcpt (void); +extern int protlocal (void); + -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |