-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
None
Visual Studio provides warning C26477 - USE_NULLPTR_NOT_CONSTANT (https://learn.microsoft.com/en-us/cpp/code-quality/c26477?view=msvc-170). This warns about using literal 0 or NULL as a null pointer constant, so it provides at least as much as gcc's -Wzero-as-null-pointer-constant. We should enable this Visual Studio warning per the HotSpot Style Guide (JDK-8327173), similarly to enabling the gcc warning (JDK-8332189).
There are probably code changes that need to be made first, similarly to what has been done for JDK-8332189.
There are probably code changes that need to be made first, similarly to what has been done for JDK-8332189.
- relates to
-
JDK-8332189 Enable -Wzero-as-null-pointer-constant for gcc
-
- Open
-
-
JDK-8327173 HotSpot Style Guide needs update regarding nullptr vs NULL
-
- Resolved
-