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

Remove -Wno-extra from Hotspot

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 14
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      The -Wextra option to gcc enables a bunch of useful warnings. Some of them, but not all, can be individually enabled or disabled. All other libraries in OpenJDK are compiled with -Wextra, but not Hotspot. Enabling -Wextra triggers a couple of warnings that can be individually disabled. (The idea here is not to just permanently disable those warnings (unless that makes sense), but to look at these warnings one at a time and see how they can be addressed.)

      However, -Wextra also includes some check that cannot be disabled individually, so to be able to add enable this, we must at the same time fix those warnings.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ihse Magnus Ihse Bursie
                Reporter:
                ihse Magnus Ihse Bursie
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: