Fix -Wzero-as-null-pointer-constant warnings in calls to Node ctor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: hotspot
    • b05

      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.

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

              Created:
              Updated:
              Resolved: