Mark fortified __FD_ELT as extension
authorAndreas Schwab <schwab@redhat.com>
Fri, 2 Dec 2011 10:34:28 +0000 (11:34 +0100)
committerAndreas Schwab <schwab@redhat.com>
Fri, 2 Dec 2011 10:36:55 +0000 (11:36 +0100)
ChangeLog
misc/bits/select2.h

index dddb628..e512bbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-02  Andreas Schwab  <schwab@redhat.com>
+
+       * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
+       parenthesis.
+
 2011-12-01  Andreas Schwab  <schwab@redhat.com>
 
        * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
index 37c4827..a7ce1b4 100644 (file)
@@ -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))                          \