diff options
| author | Ulrich Drepper <drepper@redhat.com> | 1998-09-06 23:45:24 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-06 23:45:24 +0000 |
| commit | 6796bc807aa3808f6afb5da42932e437bdd183cf (patch) | |
| tree | f0610b5aebf183e95afb9f70c30d77ea82f9ef9e | |
| parent | baa3334acc20834b32be1abf96f5942367c31a06 (diff) | |
| download | glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.tar.xz glibc-6796bc807aa3808f6afb5da42932e437bdd183cf.zip | |
Update.
1998-09-06 09:53 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
* Makeconfig (+gccwarn): Remove -Wno-parentheses.
* elf/dl-open.c: Quiet -Wparentheses warnings.
* iconvdata/johab.c: Likewise.
* iconvdata/uhc.c: Likewise.
* inet/inet_net.c: Likewise.
* io/fts.c: Likewise.
* locale/newlocale.c: Likewise.
* misc/getttyent.c: Likewise.
* misc/mntent_r.c: Likewise.
* misc/ttyslot.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nss/nsswitch.c: Likewise.
* resolv/gethnamaddr.c: Likewise.
* resolv/nsap_addr.c: Likewise.
* resolv/res_debug.c: Likewise.
* stdio-common/_itoa.c: Likewise.
* stdlib/strtod.c: Likewise.
* string/strverscmp.c: Likewise.
* sunrpc/svc.c: Likewise.
* sysdeps/libm-ieee754/e_cosh.c: Likewise.
* sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
* sysdeps/libm-ieee754/e_sinh.c: Likewise.
* sysdeps/posix/getaddrinfo.c: Likewise.
* include/dlfcn.h: Likewise.
* elf/dlfcn.h: Declare dladdr only for __USE_GNU.
Define RTLD_DEFAULT.
65 files changed, 204 insertions, 78 deletions
@@ -1,3 +1,30 @@ +1998-09-06 09:53 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu> + + * Makeconfig (+gccwarn): Remove -Wno-parentheses. + + * elf/dl-open.c: Quiet -Wparentheses warnings. + * iconvdata/johab.c: Likewise. + * iconvdata/uhc.c: Likewise. + * inet/inet_net.c: Likewise. + * io/fts.c: Likewise. + * locale/newlocale.c: Likewise. + * misc/getttyent.c: Likewise. + * misc/mntent_r.c: Likewise. + * misc/ttyslot.c: Likewise. + * nscd/nscd_conf.c: Likewise. + * nss/nsswitch.c: Likewise. + * resolv/gethnamaddr.c: Likewise. + * resolv/nsap_addr.c: Likewise. + * resolv/res_debug.c: Likewise. + * stdio-common/_itoa.c: Likewise. + * stdlib/strtod.c: Likewise. + * string/strverscmp.c: Likewise. + * sunrpc/svc.c: Likewise. + * sysdeps/libm-ieee754/e_cosh.c: Likewise. + * sysdeps/libm-ieee754/e_gamma_r.c: Likewise. + * sysdeps/libm-ieee754/e_sinh.c: Likewise. + * sysdeps/posix/getaddrinfo.c: Likewise. + 1998-09-06 15:13 Ulrich Drepper <drepper@cygnus.com> * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test @@ -38,6 +65,7 @@ * include/alloca.h: Add multiple-inclusion guard. * include/db.h: Likewise. * include/db_185.h: Likewise. + * include/dlfcn.h: Likewise. * include/fcntl.h: Likewise. * include/grp.h: Likewise. * include/libintl.h: Likewise. @@ -68,9 +96,6 @@ * include/sys/times.h: Likewise. * include/sys/wait.h: Likewise. - * include/dlfcn.h: Declare dladdr only for __USE_GNU. - Define RTLD_DEFAULT. - 1998-09-06 09:00 Ulrich Drepper <drepper@cygnus.com> * version.h (VERSION): Bump to 2.0.96. @@ -95,7 +120,6 @@ * elf/dl-support.c: Likewise. * elf/dl-symbol.c: Likewise. * elf/dl-version.c: Likewise. - * elf/dlfcn.h: Likewise. * elf/dlsym.c: Likewise. * elf/dlvsym.c: Likewise. * elf/ldsodefs.h: Likewise. @@ -105,6 +129,9 @@ * sysdeps/i386/dl-machine.h: Likewise. * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise. + * elf/dlfcn.h: Declare dladdr only for __USE_GNU. + Define RTLD_DEFAULT. + 1998-09-05 Mark Kettenis <kettenis@phys.uva.nl> * sysdeps/mach/hurd/i386/init-first.c (init1): Call diff --git a/Makeconfig b/Makeconfig index b0141d4cb6..1858dd54a9 100644 --- a/Makeconfig +++ b/Makeconfig @@ -489,7 +489,7 @@ RANLIB = ranlib endif # Extra flags to pass to GCC. -+gccwarn := -Wall -Wwrite-strings -Wno-parentheses -Winline -Wstrict-prototypes ++gccwarn := -Wall -Wwrite-strings -Winline -Wstrict-prototypes # This is the program that generates makefile # dependencies from C source files. diff --git a/elf/dl-open.c b/elf/dl-open.c index 6765b6ce08..694b0ebfaa 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -192,7 +192,7 @@ dl_open_worker (void *a) _dl_debug_state (); /* Run the initializer functions of new objects. */ - while (init = _dl_init_next (&new->l_searchlist)) + while ((init = _dl_init_next (&new->l_searchlist))) (*(void (*) (int, char **, char **)) init) (__libc_argc, __libc_argv, __environ); diff --git a/iconvdata/johab.c b/iconvdata/johab.c index 6da169438c..6a5d8be68f 100644 --- a/iconvdata/johab.c +++ b/iconvdata/johab.c @@ -220,11 +220,11 @@ johab_sym_hanja_to_ucs (uint_fast32_t idx, uint_fast32_t c1, uint_fast32_t c2) } \ else if (i > 0 && m > 0) \ ch = ((i - 1) * 21 + (m - 1)) * 28 + f + 0xac00; \ - else if (i > 0 && m == 0 & f == 0) \ + else if (i > 0 && m == 0 && f == 0) \ ch = init_to_ucs[i - 1]; \ - else if (i == 0 && m > 0 & f == 0) \ + else if (i == 0 && m > 0 && f == 0) \ ch = 0x314e + m; /* 0x314f + m - 1 */ \ - else if (i == 0 && m == 0 & f > 0) \ + else if (i == 0 && m == 0 && f > 0) \ ch = final_to_ucs[f - 1]; /* round trip?? */ \ else \ { \ diff --git a/iconvdata/uhc.c b/iconvdata/uhc.c index 0fa6d40f74..5aef36cdd0 100644 --- a/iconvdata/uhc.c +++ b/iconvdata/uhc.c @@ -3170,7 +3170,7 @@ static const char uhc_hangul_from_ucs[11172][2] = *outptr++ = s[0]; \ *outptr++ = s[1]; \ } \ - else if (ch >= 0x4e00 && ch <= 0x9fa5 || ch >= 0xf900 && ch <= 0xfa0b) \ + else if ((ch >= 0x4e00 && ch <= 0x9fa5) || (ch >= 0xf900 && ch <= 0xfa0b))\ { \ size_t written = ucs4_to_ksc5601_hanja (ch, outptr, \ (NEED_LENGTH_TEST \ diff --git a/include/alloca.h b/include/alloca.h index ae41090bd1..4dcddb6ae1 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -1,3 +1,5 @@ +#ifndef _ALLOCA_H + #include <stdlib/alloca.h> #undef __alloca @@ -8,3 +10,5 @@ extern __ptr_t __alloca __P ((size_t __size)); #ifdef __GNUC__ # define __alloca(size) __builtin_alloca (size) #endif /* GCC. */ + +#endif diff --git a/include/db.h b/include/db.h index 13e9c307eb..64c7348ea6 100644 --- a/include/db.h +++ b/include/db.h @@ -1,5 +1,9 @@ +#ifndef _DB_H_ + #include <db2/db.h> /* Internal interface for NSS. */ int __nss_db_open __P((const char *, DBTYPE, u_int32_t, int, DB_ENV *, DB_INFO *, DB **)); + +#endif diff --git a/include/db_185.h b/include/db_185.h index db78199865..37bb16e99b 100644 --- a/include/db_185.h +++ b/include/db_185.h @@ -1,4 +1,6 @@ +#ifndef _DB_185_H_ #include <db2/db_185.h> /* Now define the internal interfaces. */ DB *__dbopen __P((const char *, int, int, DBTYPE, const void *)); +#endif diff --git a/include/dlfcn.h b/include/dlfcn.h index 766c80a11a..955819739a 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -1,5 +1,7 @@ +#ifndef _DLFCN_H #include <elf/dlfcn.h> /* Now define the internal interfaces. */ extern void *__dlvsym __P ((void *__handle, __const char *__name, __const char *__version)); +#endif diff --git a/include/fcntl.h b/include/fcntl.h index cce3d5ee10..949c6621fd 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -1,4 +1,6 @@ +#ifndef _FCNTL_H #include <io/fcntl.h> /* Now define the internal interfaces. */ extern int __open64 __P ((__const char *__file, int __oflag, ...)); +#endif diff --git a/include/grp.h b/include/grp.h index ddde842fe6..14be78cf00 100644 --- a/include/grp.h +++ b/include/grp.h @@ -1,3 +1,4 @@ +#ifndef _GRP_H #include <grp/grp.h> /* Now define the internal interfaces. */ @@ -6,3 +7,4 @@ extern int __getgrent_r __P ((struct group *__resultbuf, char *buffer, extern int __fgetgrent_r __P ((FILE * __stream, struct group *__resultbuf, char *buffer, size_t __buflen, struct group **__result)); +#endif diff --git a/include/libintl.h b/include/libintl.h index 582cb05d74..3763b04c5f 100644 --- a/include/libintl.h +++ b/include/libintl.h @@ -1,3 +1,4 @@ +#ifndef _LIBINTL_H #include <intl/libintl.h> |
