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

compiler: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Environment:

      Use gcc to see the warnings; clang will not show them.

    • Subcomponent:
    • Resolved In Build:
      b89
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        The macro PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC appears near the top of several compiler source files.

        This has the effect of silencing gcc's complaints about format errors, both important and trivial. The important ones were fixed in JDK-8037816; the trivial ones remain, but as long as this macro remains in the file there is a potential for unchecked bit rot.

        It's a tedious process, best done by someone who knows (or is learning) what was intended when type and format do not match.

        It might be appropriate to work on this file using Zeno's algorithm; clear out the easiest half, and file another bug.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                david David Lindholm (Inactive)
                Reporter:
                drchase David Chase (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: