From 7c4c1a09164ce5dc132a9a67cebd28f5b8619c24 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 1 Nov 2000 19:15:39 +0000 Subject: [PATCH] Update. * sysdeps/unix/sysv/linux/bits/socket.h (CMSG_ALIGN): Cast result of unary ~ to size_t. * stdlib/strtod.c: Make gcc shut up about SWAP use. --- ChangeLog | 5 +++++ stdlib/strtod.c | 4 ++-- sysdeps/unix/sysv/linux/bits/socket.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1e4a4be..9f6b45b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-11-01 Ulrich Drepper + * sysdeps/unix/sysv/linux/bits/socket.h (CMSG_ALIGN): Cast result + of unary ~ to size_t. + + * stdlib/strtod.c: Make gcc shut up about SWAP use. + * sysdeps/i386/fpu/bits/mathinline.h: Add support for builtin unordered compare functions to gcc 2.97 and up. diff --git a/stdlib/strtod.c b/stdlib/strtod.c index d152371..62a4c99 100644 --- a/stdlib/strtod.c +++ b/stdlib/strtod.c @@ -1051,7 +1051,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM) numsize += size; if (cy == 0) --numsize; - SWAP (psrc, pdest); + (void) SWAP (psrc, pdest); } expbit <<= 1; ++ttab; @@ -1214,7 +1214,7 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM) densize += ttab->arraysize - _FPIO_CONST_OFFSET; if (cy == 0) --densize; - SWAP (psrc, pdest); + (void) SWAP (psrc, pdest); } } expbit <<= 1; diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index accfdee..98e5b65 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -244,7 +244,7 @@ struct cmsghdr ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \ ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL) #define CMSG_ALIGN(len) (((len) + sizeof (size_t) - 1) \ - & ~(sizeof (size_t) - 1)) + & (size_t) ~(sizeof (size_t) - 1)) #define CMSG_SPACE(len) (CMSG_ALIGN (len) \ + CMSG_ALIGN (sizeof (struct cmsghdr))) #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) -- 2.7.4