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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: