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] |
The appended patch silences a number of GCC warnings about "no previous prototype". Ok to commit? Andreas 2000-12-15 Andreas Jaeger <aj@suse.de> * elf/constload2.c: Add prototype declarations to shut up gcc. * elf/dep1.c: Likewise. * elf/dep2.c: Likewise. * elf/dep3.c: Likewise. * elf/dep4.c: Likewise. * elf/ltglobmod2.c: Likewise. * libio/fmemopen.c: Make local functions static. * elf/Makefile (distribute): Added testobj.h. * elf/testobj.h: New file. * elf/testobj1.c: Include testobj.h and move prototype declarations to testobj.h. * elf/testobj2.c: Likewise. * elf/testobj3.c: Likewise. * elf/testobj4.c: Likewise. * elf/testobj5.c: Likewise. * elf/testobj6.c: Likewise. * elf/testobj1_1.c: Likewise. * elf/preloadtest.c: Likewise. ============================================================ Index: libio/fmemopen.c --- libio/fmemopen.c 2000/10/31 05:16:13 1.4 +++ libio/fmemopen.c 2000/12/15 10:07:36 @@ -87,7 +87,7 @@ }; -ssize_t +static ssize_t fmemopen_read (void *cookie, char *b, size_t s) { fmemopen_cookie_t *c; @@ -111,7 +111,7 @@ } -ssize_t +static ssize_t fmemopen_write (void *cookie, const char *b, size_t s) { fmemopen_cookie_t *c; @@ -145,7 +145,7 @@ } -int +static int fmemopen_seek (void *cookie, _IO_off64_t *p, int w) { _IO_off64_t np; @@ -180,7 +180,7 @@ } -int +static int fmemopen_close (void *cookie) { fmemopen_cookie_t *c; ============================================================ Index: elf/constload2.c --- elf/constload2.c 2000/08/15 08:22:08 1.2 +++ elf/constload2.c 2000/12/15 10:07:36 @@ -3,6 +3,8 @@ #include <stdlib.h> extern int bar (void); +extern int baz (void); +extern int foo (void); void *h; ============================================================ Index: elf/dep1.c --- elf/dep1.c 2000/03/31 17:08:12 1.1 +++ elf/dep1.c 2000/12/15 10:07:36 @@ -1,5 +1,6 @@ #include <unistd.h> +extern int dep1 (void); extern int dep2 (void); extern int dep4 (void); ============================================================ Index: elf/dep2.c --- elf/dep2.c 2000/03/31 17:08:12 1.1 +++ elf/dep2.c 2000/12/15 10:07:36 @@ -1,5 +1,6 @@ #include <unistd.h> +extern int dep2 (void); extern int dep3 (void); extern int dep4 (void); ============================================================ Index: elf/dep3.c --- elf/dep3.c 2000/03/31 17:08:12 1.1 +++ elf/dep3.c 2000/12/15 10:07:36 @@ -1,5 +1,7 @@ #include <unistd.h> +extern int dep3 (void); + static void __attribute__ ((constructor)) init (void) ============================================================ Index: elf/dep4.c --- elf/dep4.c 2000/03/31 17:08:12 1.1 +++ elf/dep4.c 2000/12/15 10:07:36 @@ -1,6 +1,7 @@ #include <unistd.h> extern int dep3 (void); +extern int dep4 (void); static void __attribute__ ((constructor)) ============================================================ Index: elf/ltglobmod2.c --- elf/ltglobmod2.c 2000/10/21 07:13:48 1.1 +++ elf/ltglobmod2.c 2000/12/15 10:07:36 @@ -3,6 +3,7 @@ #include <stdlib.h> extern int bar (void); +extern int foo (void); int foo (void) ============================================================ Index: elf/Makefile --- elf/Makefile 2000/11/03 01:18:06 1.187 +++ elf/Makefile 2000/12/15 10:07:37 @@ -55,7 +55,8 @@ reldepmod1.c reldepmod2.c reldepmod3.c reldepmod4.c \ 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 + unload2mod.c unload2dep.c ltglobmod1.c ltglobmod2.c \ + testobj.h include ../Makeconfig ============================================================ Index: elf/testobj1.c --- elf/testobj1.c 1999/01/21 08:30:21 1.4 +++ elf/testobj1.c 2000/12/15 10:07:37 @@ -1,7 +1,7 @@ #include <dlfcn.h> #include <stdlib.h> -extern int foo (int); +#include "testobj.h" int obj1func1 (int a __attribute__ ((unused))) ============================================================ Index: elf/testobj1_1.c --- elf/testobj1_1.c 1999/01/21 08:30:22 1.2 +++ elf/testobj1_1.c 2000/12/15 10:07:37 @@ -1,4 +1,4 @@ -extern int obj1func2 (int); +#include "testobj.h" int obj1func1 (int a) ============================================================ Index: elf/testobj2.c --- elf/testobj2.c 1999/01/21 08:30:23 1.4 +++ elf/testobj2.c 2000/12/15 10:07:37 @@ -1,7 +1,7 @@ #include <dlfcn.h> #include <stdlib.h> -extern int obj1func1 (int); +#include "testobj.h" int obj2func1 (int a __attribute__ ((unused))) ============================================================ Index: elf/testobj3.c --- elf/testobj3.c 1999/01/21 08:30:24 1.4 +++ elf/testobj3.c 2000/12/15 10:07:37 @@ -1,7 +1,8 @@ #include <dlfcn.h> #include <stdlib.h> -extern int foo (int); +#include "testobj.h" + int obj3func1 (int a __attribute__ ((unused))) ============================================================ Index: elf/testobj4.c --- elf/testobj4.c 1999/01/21 08:30:25 1.3 +++ elf/testobj4.c 2000/12/15 10:07:37 @@ -1,7 +1,7 @@ #include <dlfcn.h> #include <stdlib.h> -extern int foo (int); +#include "testobj.h" int obj4func1 (int a __attribute__ ((unused))) ============================================================ Index: elf/testobj5.c --- elf/testobj5.c 1999/01/21 08:30:26 1.3 +++ elf/testobj5.c 2000/12/15 10:07:37 @@ -1,7 +1,8 @@ #include <dlfcn.h> #include <stdlib.h> -extern int foo (int); +#include "testobj.h" + int obj5func1 (int a __attribute__ ((unused))) ============================================================ Index: elf/testobj6.c --- elf/testobj6.c 1999/01/21 08:30:27 1.2 +++ elf/testobj6.c 2000/12/15 10:07:37 @@ -1,4 +1,4 @@ -extern int foo (int); +#include "testobj.h" int obj6func1 (int a __attribute__ ((unused))) ============================================================ Index: elf/preloadtest.c --- elf/preloadtest.c 2000/11/26 06:17:46 1.2 +++ elf/preloadtest.c 2000/12/15 10:07:37 @@ -1,6 +1,6 @@ #include <stdio.h> -extern int preload (int); +#include "testobj.h" int main (void) @@ -12,7 +12,6 @@ return res != 92; } -extern int foo (int a); int foo (int a) { ============================================================ Index: elf/testobj.h --- elf/testobj.h created +++ elf/testobj.h Fri Dec 15 11:04:52 2000 1.1 @@ -0,0 +1,28 @@ +extern int preload (int a); + +extern int foo (int); + +extern int obj1func1 (int); + +extern int obj1func2 (int); + +extern int obj2func1 (int); + +extern int obj2func2 (int); + +extern int obj3func1 (int); + +extern int obj3func2 (int); + +extern int obj4func1 (int); + +extern int obj4func2 (int); + +extern int obj5func1 (int); + +extern int obj5func2 (int); + +extern int obj6func1 (int); + +extern int obj6func2 (int); + -- 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] |