From 3008082ba51469988027f8ebc630d376e90b82f6 Mon Sep 17 00:00:00 2001 From: dab Date: Thu, 28 Jun 2018 20:37:17 +0000 Subject: [PATCH] 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 --- sys/sys/event.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/sys/event.h b/sys/sys/event.h index cf37d91e34bc..d1a1d406491d 100644 --- a/sys/sys/event.h +++ b/sys/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++) */