Author: dab
Date: Thu Jun 28 20:37:17 2018
New Revision: 335776
URL: https://svnweb.freebsd.org/changeset/base/335776

Log:
  Fix compilation error in r335765 under gcc 4.2.1.
  
  The anonymous object initialization introduced in r335765 was
  acceptable to clang, but not gcc 4.2.1. Fix it for both.
  
  Reported by:  jhibbits@
  Pointy Hat:   myself
  MFC after:    1 week
  X-MFC-with:   r335765
  Sponsored by: Dell EMC

Modified:
  head/sys/sys/event.h

Modified: head/sys/sys/event.h
==============================================================================
--- head/sys/sys/event.h        Thu Jun 28 20:36:21 2018        (r335775)
+++ head/sys/sys/event.h        Thu Jun 28 20:37:17 2018        (r335776)
@@ -58,10 +58,7 @@
        .fflags = (d),                          \
        .data = (e),                            \
        .udata = (f),                           \
-       .ext[0] = 0,                            \
-       .ext[1] = 0,                            \
-       .ext[2] = 0,                            \
-       .ext[3] = 0,                            \
+       .ext = {0},                             \
     };                                         \
 } while(0)
 #else /* Pre-C99 or not STDC (e.g., C++) */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to