Yes, it’s a known issue after upgrade Xcode, https://bugs.openjdk.java.net/browse/JDK-8200550
Cheers, Henry > On Apr 12, 2018, at 11:19 AM, Magnus Ihse Bursie > <magnus.ihse.bur...@oracle.com> wrote: > > On 2018-04-12 19:42, Dan Smith wrote: >> I'm suddenly getting hundreds of these warnings when I build in macOS: >> >> /Users/dan/Dev/jdk/jdk/src/hotspot/share/gc/g1/heapRegionSet.hpp:126:5: >> warning: macro expansion producing 'defined' has undefined behavior >> [-Wexpansion-to-defined] >> #if HEAP_REGION_SET_FORCE_VERIFY >> ^ >> /Users/dan/Dev/jdk/jdk/src/hotspot/share/gc/g1/heapRegionSet.hpp:53:38: >> note: expanded from macro 'HEAP_REGION_SET_FORCE_VERIFY' >> #define HEAP_REGION_SET_FORCE_VERIFY defined(ASSERT) >> ^ > I think I saw a discussion about fixing this since the new Visual Studio > compiler also complained about it, or so. It might even be fixed in jdk/hs. >> Not clear what triggered them, but my guess is an Xcode update. > If you updated Xcode, and are using that instead of jib for building, then > yes, that's likely. > > /Magnus >> >> Is this a known problem? Can anyone reproduce? >> >