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

gc: PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC needs to be removed from source files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • Compile with gcc to see the warnings. Clang will not show them.

    • gc
    • generic
    • linux

      The macro PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC appears near the top of several gc 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 for the remainder.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: