From d4cc29a254db6bd3838aac79d9d0e91cfd467c9d Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 2 Dec 2011 11:34:28 +0100 Subject: Mark fortified __FD_ELT as extension --- ChangeLog | 5 +++++ misc/bits/select2.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dddb6280ef..e512bbb122 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-02 Andreas Schwab + + * misc/bits/select2.h (__FD_ELT): Mark as extension. Add + parenthesis. + 2011-12-01 Andreas Schwab * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when diff --git a/misc/bits/select2.h b/misc/bits/select2.h index 37c4827f1c..a7ce1b47e8 100644 --- a/misc/bits/select2.h +++ b/misc/bits/select2.h @@ -27,7 +27,8 @@ extern unsigned long int __fdelt_warn (unsigned long int __d) __warnattr ("bit outside of fd_set selected"); #undef __FD_ELT #define __FD_ELT(d) \ - ({ unsigned long int __d = d; \ + __extension__ \ + ({ unsigned long int __d = (d); \ (__builtin_constant_p (__d) \ ? (__d >= __FD_SETSIZE \ ? __fdelt_warn (__d) : (__d / __NFDBITS)) \ -- cgit 1.4.1