From a53e3292a4e94fb81d4870cd1b029a3cbf580c65 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 25 Feb 2000 17:08:15 +0000 Subject: [PATCH] Update. 2000-02-25 Andreas Jaeger * stdio-common/Makefile (CFLAGS-_itoa.c): The code has been fixed, we don't need to disable the warnings anymore, remove them. * elf/Makefile (CFLAGS-dl-load.c): Likewise. * posix/Makefile (CFLAGS-regex.c): Remove not needed warning flag. * posix/regex.c (regex_compile): Remove unused variables. 2000-02-25 Andreas Jaeger * sysdeps/unix/sysv/linux/bits/msq.h (struct msqid_ds): Use __pid_t. * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise. 2000-02-25 Andreas Jaeger * locale/programs/ld-ctype.c (allocate_arrays): Add missing variable declaration. --- ChangeLog | 23 +++++++++++++++++++++++ elf/Makefile | 1 - locale/programs/ld-ctype.c | 3 ++- posix/Makefile | 2 +- posix/regex.c | 4 ---- stdio-common/Makefile | 1 - sysdeps/unix/sysv/linux/alpha/bits/msq.h | 4 ++-- sysdeps/unix/sysv/linux/bits/msq.h | 4 ++-- sysdeps/unix/sysv/linux/sparc/bits/msq.h | 4 ++-- 9 files changed, 32 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index a17b1e8..2198686 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +2000-02-25 Andreas Jaeger + + * stdio-common/Makefile (CFLAGS-_itoa.c): The code has been + fixed, we don't need to disable the warnings anymore, remove them. + * elf/Makefile (CFLAGS-dl-load.c): Likewise. + + * posix/Makefile (CFLAGS-regex.c): Remove not needed warning + flag. + + * posix/regex.c (regex_compile): Remove unused variables. + +2000-02-25 Andreas Jaeger + + * sysdeps/unix/sysv/linux/bits/msq.h (struct msqid_ds): Use + __pid_t. + * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Likewise. + * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise. + +2000-02-25 Andreas Jaeger + + * locale/programs/ld-ctype.c (allocate_arrays): Add missing + variable declaration. + 2000-02-25 Ulrich Drepper * conform/conformtest.pl (@headers): Add "sys/msg.h", "sys/mman.h", diff --git a/elf/Makefile b/elf/Makefile index 422d278..b262418 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -153,7 +153,6 @@ $(objpfx)trusted-dirs.st: Makefile $(..)Makeconfig $(move-if-change) ${@:st=T} ${@:st=h} touch $@ CPPFLAGS-dl-load.c = -I$(objpfx). -CFLAGS-dl-load.c += -Wno-uninitialized ifeq (yes,$(build-shared)) $(inst_slibdir)/$(rtld-version-installed-name): $(objpfx)ld.so $(+force) diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index dbd030c..b0b9144 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -3050,7 +3050,8 @@ allocate_arrays (struct locale_ctype_t *ctype, struct charmap_t *charmap, struct repertoire_t *repertoire) { size_t idx; - + size_t width_table_size; + /* First we have to decide how we organize the arrays. It is easy for a one-byte character set. But multi-byte character set cannot be stored flat because the chars might be sparsely used. diff --git a/posix/Makefile b/posix/Makefile index 674277e..022b455 100644 --- a/posix/Makefile +++ b/posix/Makefile @@ -91,7 +91,7 @@ do-wordexp-test: $(objpfx)wordexp-test endif endif -CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes -DDEBUG +CFLAGS-regex.c = -Wno-strict-prototypes -DDEBUG CFLAGS-getaddrinfo.c = -DRESOLVER $(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib) diff --git a/posix/regex.c b/posix/regex.c index 2f3a9b5..507ac86 100644 --- a/posix/regex.c +++ b/posix/regex.c @@ -2448,7 +2448,6 @@ regex_compile (pattern, size, syntax, bufp) const int32_t *indirect; int32_t idx; const unsigned char *cp = str; - int32_t weight; int ch; /* This #include defines a local function! */ @@ -2584,11 +2583,8 @@ regex_compile (pattern, size, syntax, bufp) const unsigned char *extra; int32_t idx; int32_t elem; - const unsigned char *cp = str; - int32_t weight; int32_t second; int32_t hash; - int ch; table_size = _NL_CURRENT_WORD (LC_COLLATE, diff --git a/stdio-common/Makefile b/stdio-common/Makefile index d2f5188..c93ead6 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -59,7 +59,6 @@ tests := tst-printf tstscanf test_rdwr test-popen tstgetln test-fseek \ include ../Rules CFLAGS-vfprintf.c = -Wno-uninitialized -CFLAGS-_itoa.c = -Wno-unused CFLAGS-tst-printf.c = -Wno-format CFLAGS-tstdiomisc.c = -Wno-format CFLAGS-scanf4.c = -Wno-format diff --git a/sysdeps/unix/sysv/linux/alpha/bits/msq.h b/sysdeps/unix/sysv/linux/alpha/bits/msq.h index 3ca076e..9271ce6 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/msq.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/msq.h @@ -44,8 +44,8 @@ struct msqid_ds unsigned long int __msg_cbytes; /* current number of bytes on queue */ msgqnum_t msg_qnum; /* number of messages currently on queue */ msglen_t msg_qbytes; /* max number of bytes allowed on queue */ - pid_t msg_lspid; /* pid of last msgsnd() */ - pid_t msg_lrpid; /* pid of last msgrcv() */ + __pid_t msg_lspid; /* pid of last msgsnd() */ + __pid_t msg_lrpid; /* pid of last msgrcv() */ unsigned long int __unused1; unsigned long int __unused2; }; diff --git a/sysdeps/unix/sysv/linux/bits/msq.h b/sysdeps/unix/sysv/linux/bits/msq.h index 840ddd6..7088ae2 100644 --- a/sysdeps/unix/sysv/linux/bits/msq.h +++ b/sysdeps/unix/sysv/linux/bits/msq.h @@ -47,8 +47,8 @@ struct msqid_ds unsigned long int __msg_cbytes; /* current number of bytes on queue */ msgqnum_t msg_qnum; /* number of messages currently on queue */ msglen_t msg_qbytes; /* max number of bytes allowed on queue */ - pid_t msg_lspid; /* pid of last msgsnd() */ - pid_t msg_lrpid; /* pid of last msgrcv() */ + __pid_t msg_lspid; /* pid of last msgsnd() */ + __pid_t msg_lrpid; /* pid of last msgrcv() */ unsigned long int __unused4; unsigned long int __unused5; }; diff --git a/sysdeps/unix/sysv/linux/sparc/bits/msq.h b/sysdeps/unix/sysv/linux/sparc/bits/msq.h index 6b32ef9..ea30728 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/msq.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/msq.h @@ -54,8 +54,8 @@ struct msqid_ds unsigned long int __msg_cbytes; /* current number of bytes on queue */ msgqnum_t msg_qnum; /* number of messages currently on queue */ msglen_t msg_qbytes; /* max number of bytes allowed on queue */ - pid_t msg_lspid; /* pid of last msgsnd() */ - pid_t msg_lrpid; /* pid of last msgrcv() */ + __pid_t msg_lspid; /* pid of last msgsnd() */ + __pid_t msg_lrpid; /* pid of last msgrcv() */ unsigned long int __unused1; unsigned long int __unused2; }; -- 2.7.4