Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8335588

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • 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.

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

              Created:
              Updated:
              Resolved: