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

Fix -Wzero-as-null-pointer-constant warnings from THROW_XXX_0

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 24
    • None
    • hotspot
    • b12

    Description

      There are a few places which use THROW_ARG_0 or THROW_HANDLE_0 in a context where a pointer value is needed, resulting in -Wzero-as-null-pointer-constant warnings when enabled.

      These places could use the _NULL suffixed variants of those macros, except no such variants are currently defined. Alternatively, they could use the explicit value variants with a value of nullptr.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: