Various classes derived from Node have constructors that call the Node constructor with a first argument of 0. That argument is a Node*, so that triggers -Wzero-as-null-pointer-constant warnings when that's enabled.
There aren't a huge number of such classes, but these occur in .hpp files that are frequently included, with the result that they lead to over 2K warnings when building the JDK.
There aren't a huge number of such classes, but these occur in .hpp files that are frequently included, with the result that they lead to over 2K warnings when building the JDK.
- blocks
-
JDK-8332189 Enable -Wzero-as-null-pointer-constant
- Open