From 1d00acb1c9cec20be60ce81d6fd4bf8a98f66512 Mon Sep 17 00:00:00 2001 From: dab Date: Thu, 28 Jun 2018 20:37:17 +0000 Subject: 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 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++) */ -- cgit v1.2.3