-Wexpansion-to-defined warnings

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Apr 12 18:19:30 UTC 2018

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]
>      ^
> /Users/dan/Dev/jdk/jdk/src/hotspot/share/gc/g1/heapRegionSet.hpp:53:38: note: expanded from macro 'HEAP_REGION_SET_FORCE_VERIFY'
>                                       ^
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.

> Is this a known problem? Can anyone reproduce?

More information about the build-dev mailing list