[rtems commit] Fix compilation error in r335765 under gcc 4.2.1.
Sebastian Huber
sebh at rtems.org
Wed Aug 8 06:49:47 UTC 2018
Module: rtems
Branch: master
Commit: 1d00acb1c9cec20be60ce81d6fd4bf8a98f66512
Changeset: http://git.rtems.org/rtems/commit/?id=1d00acb1c9cec20be60ce81d6fd4bf8a98f66512
Author: dab <dab at FreeBSD.org>
Date: Thu Jun 28 20:37:17 2018 +0000
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
---
cpukit/include/sys/event.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cpukit/include/sys/event.h b/cpukit/include/sys/event.h
index b3ba98d..08286dc 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++) */
More information about the vc
mailing list