svn commit: r335776 - head/sys/sys
David Bright
dab at FreeBSD.org
Thu Jun 28 20:37:18 UTC 2018
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++) */
More information about the svn-src-all
mailing list