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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: