summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordab <dab@FreeBSD.org>2018-06-28 20:37:17 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-08 08:15:17 +0200
commit1d00acb1c9cec20be60ce81d6fd4bf8a98f66512 (patch)
treed696b2f9f4fc28418bd785e1d032df4420cd2628
parentRemove potential identifier conflict in the EV_SET macro. (diff)
downloadrtems-1d00acb1c9cec20be60ce81d6fd4bf8a98f66512.tar.bz2
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
-rw-r--r--cpukit/include/sys/event.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/include/sys/event.h b/cpukit/include/sys/event.h
index b3ba98dd5d..08286dc83f 100644
--- a/cpukit/include/sys/event.h
+++ b/cpukit/include/sys/event.h
@@ -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++) */