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

Fix -Wzero-as-null-pointer-constant warning in jvmti_common.hpp

    XMLWordPrintable

Details

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

    Description

      In test/lib/jdk/test/lib/jvmti/jvmti_common.hpp the function print_method calls fflush with an argument of 0. That argument's type is FILE*, hence triggering a -Wzero-as-null-pointer-constant warning. This accounts for about 10% of the warnings generated when building with that option, all in HotSpot jvmti tests.

      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: