Enable gcc -Wzero-as-null-pointer-constant for HotSpot

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • tbd
    • Affects Version/s: 23
    • Component/s: hotspot
    • None

      When building HotSpot, enable -Wzero-as-null-pointer-constant to enforce the HotSpot Style Guide's admonishment against such usage.

      This is aspirational for now, as there are currently several thousand warnings generated by that option. Many are from a small number of widely included header files, but even after that there are quite a few. Some are not trivial to fix (not simply changing a "0" to "nullptr", for example). So some significant work on HotSpot will be required before this option can be enabled.

            Assignee:
            Unassigned
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: