Date: Thu, 28 Jun 2018 20:37:17 +0000 (UTC) From: David Bright <dab@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r335776 - head/sys/sys Message-ID: <201806282037.w5SKbHg1040351@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++) */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806282037.w5SKbHg1040351>